Previously, customers needed to write detailed CloudFormation stacks and learn how different resources integrate with one another, such as a VPC and Application Load Balancer. This was time consuming to author and required detailed knowledge of how each AWS service interacts with one another. With ECS patterns in the CDK, customers can create common patterns of deployments, such as a load balanced Fargate service, with a few lines of code. These patterns can be reused by other developers to save time in creating infrastructure.
We aim to provide the best experience for ECS customers to define their infrastructure as code. Four ECS patterns are available today within ecs-patterns in each of the CDK’s supported programming languages.