- Sample AWS Lambda function written in Golang with DynamoDB as a storage backend
- AWS API Gateway bridge to AWS Lambda function
- Dependencies management with Glide
- Terraform for infrastructure deployment
go.exe get -u github.com/aws/aws-lambda-go/cmd/build-lambda-zip
aws --profile personal configure
- configure AWS profiledeps.sh
- download dependenciesbuild.sh
- build Lambda source codeinfra.sh
- create infrastructure with Terraforminvoke.sh
- invoke Lambda functionget.sh 1
- invoke API Gateway (GET)post.sh
- invoke API Gateway (POST)get.sh 3
- invoke API Gateway (GET)cleanup.sh
- destroy infrastructure with Terraform
https://www.alexedwards.net/blog/serverless-api-with-go-and-aws-lambda