SAM Flashcards
1
Q
What commands do you use to package and deploy your SAM code?
A
aws cloudformation package / sam package
aws cloudformation deploy / sam deploy
2
Q
What does the sam package command do?
A
Zips and uploads your transformed cloudformation template and application code to an S3 bucket
3
Q
What does the sam deploy command do?
A
Deploys your application from an S3 bucket to CloudFormation
4
Q
What is a sam template?
A
A simple yaml template that gets transformed into cloudformation templates by the sam command ‘package’
5
Q
How can you test Lambda functions locally?
A
Use the SAM CLI + AWS Toolkits to step-through and debug code