Skip to content

serverless-guru/cdk-sample

Repository files navigation

AWS CDK Reference Project:

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.

Overview

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.

Configuration

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)

Deployment

  • cdk deploy --stage <stage-name>

About

A repository of a CDK application showcasing common best practices & overall project structure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published