serverless-application-model icon indicating copy to clipboard operation
serverless-application-model copied to clipboard

cloud formation sam output

Open autohandle opened this issue 5 years ago • 2 comments

how do you display the sam cloud formation output so you can see the effect of macros/functions before deploying

autohandle avatar Aug 15 '21 18:08 autohandle

Hi @autohandle thanks for posting the questions.

I think what you're looking for is option --no-execute-changeset. Description: Indicates whether to execute the changeset. Specify this option if you want to view your stack changes before executing the changeset. This command creates an AWS CloudFormation changeset and then exits without executing the changeset. To execute the changeset, run the same command without this option.

Feel free to check the page if you want to look at other options: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-deploy.html

xazhao avatar Aug 16 '21 04:08 xazhao

If you are trying to see what the transformed SAM -> Cloudformation template looks like, you can also use sam cli's handy sam validate --debug command which will showcase the final Cloudformation template.

However, keep in mind that full blown instrinsic resolution as done within the Cloudformation service will not be available when running this command locally.

sriram-mv avatar Aug 19 '21 15:08 sriram-mv