Boilerplate code of AWS Lambda functions built with Go and deployed with AWS CDK.
The project contains two stacks:
- Regular Lambda function
- Containerized Lambda function
Commands:
make build
- build Linux executable locallymake build_docker
- build Docker container locallymake test
- run unit testsmake deploy
- deploy both stacks to AWS account (defined bydefault
profile)make destroy
- destroy both stacks
Useful links:
- Go Project Layout: https://github.com/golang-standards/project-layout
- Dockerized lambda blog post: https://hichaelmart.medium.com/using-container-images-with-aws-lambda-7ffbd23697f1