Purpose of this repo is to demonstrate the usage of AWS API Gateway and Lambda with Go.
url: https://djte904663.execute-api.ap-southeast-1.amazonaws.com/api
- - return a status 400 if the "authentication" header is malformed or missing in the following lambda code
- - return a status 403 if "token" is invalid or empty
- - Fix Query user notes
- - Limit user notes to 10
cp .env.example .env # fille in the requirement aws credentials
go test -v -cover lambda-go/main*
Terraform is used to provision the required AWS resources:
- terraform v1.3.7
- pre-req for terraform deployment
export AWS_ACCESS_KEY_ID="xxx"
export AWS_SECRET_ACCESS_KEY="yyy"