Closed erodrigufer closed 4 months ago
This PR adds an example to the Lambda module that shows how to deploy a Lambda function using Go to program it.
Lambda
cd ./examples/aws/lambda_with_go_runtime # Check that you are using your personal workspace terraform workspace list terraform init terraform apply
europe-central-1
Test
{ "name": "Max Mustermann" }
{ "status": "ok", "message": "Hello Max Mustermann!", "request_id": "e5754bb1-0d57-4374-b974-148a4a599cba" }
You should also be capable of reading the logs in Cloudwatch related to this Lambda function.
Cleanup: destroy the resources that you deployed to test this PR:
terraform destroy
✔ I executed the PR instructions and everything worked.
✔ I checked the requirements for the ticket, and they are matching the PR.
✔ I am satisfied with the code and left annotations if I had some ideas.
This PR adds an example to the
Lambda
module that shows how to deploy a Lambda function using Go to program it.PR instructions
Lambda
in the AWS console in theeurope-central-1
region. You should find your newly deployed Lambda there.Test
menu of the function. Send a test event with a JSON payload similar to this:Test
and sending your event, you should get a successful response along the lines of this:You should also be capable of reading the logs in Cloudwatch related to this Lambda function.
Cleanup: destroy the resources that you deployed to test this PR:
The steps of acceptance
✔ I executed the PR instructions and everything worked.
✔ I checked the requirements for the ticket, and they are matching the PR.
✔ I am satisfied with the code and left annotations if I had some ideas.