Search code examples
amazon-web-servicesaws-cloudformationserverless-framework

How to transform a Serverless framework yaml to template of Cloudformation?


is there a way to get the transformed Cloudformation template from a serverless framework yaml via the console, CLI, or another way?


Solution

  • When you use serverless framework cli to build your stack a new folder get created (.serverless) with generated Cloudformation tamplates, try to run this CLI command:

    sls package
    

    or

    serverless package
    

    both works.

    The Cloudformation templates will be in JSON.