SAM Flashcards
What is SAM?
The AWS Serverless Application Model (SAM) is an open-source framework built on CloudFormation for building serverless applications
How is all configuration written in SAM?
YAML code
What can Serverless Application Model (SAM) use to deploy Lambda Functions?
CodeDeploy
What are the required sections of SAM?
SAM requires the Transform and Resources sections
What supports SAM from CloudFormation?
Supports anything from CloudFormation: Outputs, Mappings, Parameters, Resources…
What can help you to run Lambda, API Gateway and DynamoDB locally?
SAM can help you to run Lambda, API Gateway, DynamoDB locally
What are SAM commands to know?
Commands to know:
o sam build
o sam package
o sam deploy
What is used for SAM command sam build?
sam build: fetch dependencies and create local deployment artifacts
What is used for SAM command sam package?
sam package / aws cloudformation package: package and upload to Amazon S3, generate CF template
What is used for SAM command sam deploy?
sam deploy / aws cloudformation deploy: deploy to CloudFormation
How can you define IAM policies in SAM?
SAM Policy templates for easy IAM policy definition
What are main SAM Types?
o Type: AWS::Serverless::Function // Lambda
o Type: AWS::Serverless::Api // API Gateway
o Type: AWS::Serverless::SimpleTable // DynamoDB