This repository contains AWS CDK code that deploys Lambda functions, DynamoDB tables, SQS queues and API Gateway resources using CDK constructs. The deployment settings are configurable per environment (dev/prod) and can target specific AWS accounts.
The solution uses AWS CDK to define and deploy:
- Lambda functions with different event source mappings
- API Gateway endpoints that integrate with the Lambda functions
- Environment-specific configurations
- Cross-account deployment capabilities
- There are two major stacks; infra and app stack. All stateful resources and other shared infrastructure should ideally reside in a separate stack. Application specific resources go into the app stack.
- Constructs are defined with the intention of being re-usable and can be modified as needed when being used within the context of a specific service/application.
The app-config/
directory contains environment-specific configuration that define:
- AWS account IDs for deployment
- Region-specific settings
- Resource specific settings per environment (eg. VPC Subnet IDs, API Gateway stage names etc)
cdk deploy --stage <stage-name>