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
?
And if you do a lot of CloudFormation in your serverless you might like a helper to help put those intrinsic functions directly in your serverless stack without having to escape it weird... Sorry, something went wrong.
The optional Outputs section declares output values that you can import into other stacks (to create cross-stack references ), return in response (to describe stack calls), or view on the AWS CloudFormation console. For example, you can output the S3 bucket name for a stack to make the bucket easier to find.
Outputs. The optional Outputs section declares output values that you can import into other stacks (to create cross-stack references ), return in response (to describe stack calls), or view on the AWS CloudFormation console. For example, you can output the S3 bucket name for a stack to make the bucket easier to find.
If you’re using The Serverless Framework there’s some changes that you have to do in the serverless.yml file. Normally, your serverless.yml file looks something like this: Notice the profile:default property — this dictates which user/profile will be used by The Serverless Framework.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With