SAM Flashcards
What can SAM help you run locally?
Lambda, API Gateway, DynamoDB
How can SAM deploy Lambda functions?
Using CodeDeploy
What in the template indicates it is a SAM template?
Transform Header: Transform: ‘AWS::Serverless-2016-10-31’
What command packages and deploys?
sam deploy
How can you Quickly sync local changes to AWS Lambda without re-deploying infrastructure?
sam sync –watch
What are the important features of SAM Deploy?
SAM framework natively uses
CodeDeploy to update Lambda
functions
* Traffic Shifting feature
* Pre and Post traffic hooks
features to validate deployment
(before the traffic shift starts and
after it ends)
* Easy & automated rollback using
CloudWatch Alarms
What command Locally Invokes a Lambda Function?
sam local invoke
When using sam local invoke, if the function makes API calls to AWS, what do you need to do?
use the correct –profile option