This repository was created together with this blog post.
- Install Node.js (https://nodejs.org/en/download/)
- Install AWS CLI (https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html)
- Install AWS SAM (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
- Install Docker (https://docs.docker.com)
sam local invoke <Function to invoke>
Package
sam package --template-file template.yaml --s3-bucket <S3 artifacts bucket> --output-template-file outputTemplate.yaml
Deploy
sam deploy --template-file outputTemplate.yaml --stack-name <CloudFormation stack to create/update> --capabilities CAPABILITY_IAM
Automated deployment with CodePipeline (setup explained in this blog post).
Commit and push using GIT