API Gateway Lambda and DynamoDB Starter
CloudFormation: REST API with Lambda proxy integration, DynamoDB table, IAM execution roles, CloudWatch logging, and X-Ray tracing enabled.
REST API Starter — API Gateway, Lambda, DynamoDB
A fully wired CloudFormation template that deploys a production-ready REST API backed by Lambda and DynamoDB. IAM roles, CloudWatch log groups, and X-Ray tracing are all included and pre-configured.
What's Included
- API Gateway REST API with Lambda proxy integration and stage deployment
- Lambda function (Node.js 22) with CRUD operations against DynamoDB
- DynamoDB table with on-demand billing and point-in-time recovery
- IAM execution role with least-privilege DynamoDB and X-Ray permissions
- CloudWatch log groups for Lambda and API Gateway with 7-day retention
- X-Ray tracing enabled on both API Gateway and Lambda
Developer Experience
One aws cloudformation deploy command and you have a working REST API with a live endpoint URL in the stack outputs.
What You Get
Five working endpoints out of the box: list items, get by ID, create, update, delete. Structured JSON logging and X-Ray segments in place from the first request.
Requirements
AWS CLI v2 with CloudFormation, Lambda, DynamoDB, API Gateway, IAM, and CloudWatch permissions.