Skip to content

A scalable architecture to deploy containerized apps into AWS Elastic Container Service using CDKTF.

Notifications You must be signed in to change notification settings

abdelilah/cdktf-aws-ecs-app

Repository files navigation

AWS ECS App

A scalable architecture to deploy containerized apps into AWS Elastic Container Service using CDKTF.

Highlights

  • Customizable via config.ts
  • Can use default VPC or creates a dedicated one
  • Codepipeline automatically pushes new docker images from ECR to ECS
  • Blue/Green ECS deployment
  • Auto Scaling on ECS
  • Optional Serverless Aurora Database
  • Database password is stored in SSM parameter store and passed as environment variable to ECS
  • EFS Disk is included in case files need to be shared across instances (e.g. WordPress sites)
  • Folders can be be deployed automatically to EFS by uploading Zip files into S3 bucket
  • Slack notifications
  • Backup plan for EFS files into a separate region

Diagram

cdktf AWS ECS App Architecture

Pre Requisites

  1. Terraform CLI
  2. NodeJS >= 16
  3. CDKTF CLI: npm install -g cdktf-cli
  4. AWS CLI

Install Dependencies

npm install
npm run get

Configure AWS CLI

aws configure

Deploy

npm run deploy

Destroy

npm run destroy

About

A scalable architecture to deploy containerized apps into AWS Elastic Container Service using CDKTF.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published