SAM Flashcards
1
Q
What is AWS SAM?
A
Serverless Application Model
Declarative development and deployment of serverless resources
yaml
Can be used with CloudFormation, e.g. Transforms
Can use CodeDeploy to deploy Lambdas
Helps with running lambda, gateway, dynmabd locally
2
Q
How does a SAM template look like?
A
In CloudFormatio(?) Transform header indicates SAM template if it begins with AWS::Serverless-206-10-31
Resources:
AWS::Serverless::Function => Lambda
AWS::Serverless::Api => Gateway
AWS::Serverless::SimpleTable => DynamoDB table
Package & Deploy commands:
aws cloudformation package / sam packge
aws cloudformation deploy / sam deploy
3
Q
A