Please enable JavaScript.
Coggle requires JavaScript to display documents.
SAM (serverless app model) - Coggle Diagram
SAM
(serverless app model)
Recipe (Cloudformation)
Transform Header:
Transform AWS::Serverless-2016-10-31
Write code
AWS::Serverless:Function|Api|SimpleTable
Package & Deploy
(-> S3)
sam package
sam deploy --guided
sam build
Debugging
SAM CLI + AWS Toolkits
-> step debug
SAM project
sample:
https://github.com/amazon-archives/serverless-app-examples
API gateway
Dynamodb
Type: AWS::Serverless:SimpleTable
Policy template
(Properties -> Policies)
S3ReadPolicy
SQSPollerPolicy
DynamodbDBCrudPolicy
CodeDeploy
(natively used by SAM)
AutoPublishAlias: <alias name>
DeploymentPreference: Canary,Linear,AllAtOnce
Alarm
to rollback
Hooks: pre/post traffic shift
Local capabilities
sam local start-lambda
create endpoint local
to test
sam local invoke
invoke once
sam local start-api
local http server
sam local generate-event
gen sample payload
Share package
AWS Serverless Application Repository