Sample project to build lambda API with Go and terraform
Ensure your terraform version must be more than 0.12.xxx
The following explain the support command in this project in Make file
Run the following command to generate go binary
make build
Run the following command to initialize terraform
You require to run one time only
make init
Run the following command to review the changes that terraform going to apply to your infrastructure
make plan
Run the following command to deploy your changes to your aws account
make apply
After terraform apply successful, you will see api_url
output to your console, that will be your api to test
After testing complete, you can run the following command to clean up your lambda and api gateway
make destroy