Drakken Saer
Drakken Saer

Reputation: 889

Serverless Framework: Output compiled CloudFormation

I am using the serverless framework for a lambda project. We need to be able to access the cloudformation directly to meet with our standards for other projects. How can I view the full CloudFormation that is compiled from serverless.yml?

Upvotes: 13

Views: 5473

Answers (2)

Daniel Cottone
Daniel Cottone

Reputation: 4480

Running the package command will generate 2 compiled Cloudformation templates in your service directory, one for stack creation and another for the stack update:

sls package

They'll be available in the folder .serverless as cloudformation-template-create-stack.json and cloudformation-template-update-stack.json, respectively.

Upvotes: 9

Drakken Saer
Drakken Saer

Reputation: 889

I found a plugin that will output a SAM Template from serverless which solved this problem. Here is the link: https://github.com/sapessi/serverless-sam

Upvotes: 0

Related Questions