A small test on AWS SAM. Creates a simple Lambda REST API and a DynamoDB table.
- Create a bucket
aws s3 mb s3://<bucket name>
- Package the template
aws --region us-east-1 cloudformation package --template-file template.yml --s3-bucket <bucket name> --output-template-file packaged-template.yml
- Deploy
aws --region us-east-1 cloudformation deploy --template-file packaged-template.yml --stack-name aws-sam-test --capabilities CAPABILITY_IAM
- Delete the stack
aws --region us-east-1 cloudformation delete-stack --stack-name aws-sam-test