AWS Certified DevOps Engineer Notes
Transform: 'AWS::Serverless-2016-10-31
AWS::Serverless::Function
AWS::Serverless::Api
- API GatewayAWS::Serverless::SimpleTable
- DynamoDB tableaws cloudformation package
/ sam package
aws cloudformation deploy
/ sam deploy
Download a sample application
sam init --runtime java11
Build the application
sam build
Invoke function locally
sam local invoke <function-name> -e event.json
sam local start-api
Package the application
sam package --output-template packaged.yaml --s3-bucket <bucket-name> --region us-east-2 --profile aws-devops
Deploy the application
sam deploy --template-file packaged.yaml --capabilities CAPABILITY_IAM --stack-name <stack-name> --region us-east-2 --profile aws-devops
AutoPublishAlias
:
DeploymentPreference
: Canary
, Linear
, AllAtOnce
Alarms
:
Hooks
: