Generate and Read Cloudformation template without deploying

Hi,

I want to use the cloudformation template generated by serverless to setup some unit tests. I can already “render” the serverless config using sls print to get all variables resolved.

Can I also somehow generate the CloudFormation template without doing any deployment or other side effects?

Thanks!
Nathan

Have a look at sls package
That should create your cf template in the .serverless directory.

2 Likes