Build a fully functioning Lambda + AWS API Gateway integration, from end to end.
Exposes one endpoint: /counts/<CountName>
and two methods on that endpoint: GET
and POST
.
Future work could include implementing DELETE
as well (exercise for the reader).
00_pre_req
- Terraform for the prebuilt IAM rights for hello_world lambda01_hello_world
- Python code for hello_world lambda function02_increment_counter
- Python code to increment a counter in dynamodb, and tf code to deploy03_api_gateway
- Final piece of terraform, does API GW. Will be symlinked into the 02 directory.04_aws_serverless
- TODO
/counts/<CountName>
- GET -> Retrieve current count for
<CountName>
- POST -> increment current count, retrieve new count for
<CountName>
https://www.terraform.io/docs/providers/aws/guides/serverless-with-aws-lambda-and-api-gateway.html