Section 16: AWS Serverless: SAM - Serverless Application Model Flashcards
What does SAM stand for?
Serverless Application Model
In what language are SAM templates?
YAML
What differentiate a classic CloudFormation template from a SAM template?
The SAM template has a
Transform: โAWS::Serverless-2016-10-31โ
line in the template
What AWS resources does SAM help you deploy?
API Gateway
Lambda
DynamoDB
etc.
Where is the code uploaded to when deploying with SAM?
S3
Where does the CodeUri property of the definition of a Lambda function in the initial SAM template points to?
The directory containing the file which contains the handler method
Where does the CodeUri property of the definition of a Lambda function in the generated SAM template points to?
The code uploaded and encrypted to S3
What are the two commands to package/deploy SAM templates?
aws cloudformation package / sam package
aws cloudformation deploy / sam deploy
What are SAM Policy templates?
They are pre-made templates to apply permissions to your Lambda Functions (Those policies will be inline)
What is AWS SAM?
The AWS Serverless Application Model (AWS SAM) is an open-source framework that you can use to build serverless applications on AWS.