Configure and deploy complete ECS solutions with Terraform or CDK
HCL
299
238 commits
updated Oct 18, 2026
Welcome to Amazon ECS Blueprints!
When new users want to adopt containers to build, deploy, and run their applications, it often takes them several months to learn, setup, and realize container benefits. With Amazon Elastic Container Service (ECS) and AWS Fargate users don't need to manage any middleware, any EC2, or host OS. With ECS Solution Blueprints, we want new users to achieve benefits of container-based modernization in hours rather than months!
The blueprints are meant to give new users a jumpstart, and enable them to learn-by-doing. With blueprints we aspire to codify best practices, well-designed architecture patterns, and provide end-to-end solutions addressing CI/CD, observability, security, and cost efficiency.
We fully expect you to get started by copying the modules and examples but we do not expect you to maintain any conformity to this repository. In others words, we expect that you will adapt and extend the modules and examples code to suit your needs. If you feel your use cases and solutions will help other users, we encourage you to contribute your solutions to ECS Solution Blueprints.
~/.aws/credentials. You need to use the following format:[AWS_PROFILE_NAME]
aws_access_key_id = Replace_with_the_correct_access_Key
aws_secret_access_key = Replace_with_the_correct_secret_Key
export AWS_PROFILE=your_profile_name
~/.aws/config. Something like:[default]
output = json
region = us-west-2
Please refer ECS Blueprints Workshop in detail.
Fork this repository.
Clone your forked repository to your laptop/Cloud9 VM.
git clone https://github.com/<your-repo>/ecs-blueprints.git
core-infra to create cluster, VPC, and require IAMcd ecs-blueprints/terraform/fargate-examples/core-infra/
terraform init
terraform plan
terraform apply --auto-approve
cd ../lb-service
terraform init
terraform plan
terraform apply --auto-approve
You can use the ALB URL from terraform output to access the load balanced service. The above will give you a good understanding about the basics of ECS Fargate, and ECS service. You can use these as building blocks to create and deploy many ECS services. Next you can try other example blueprints.
This repository has 3 main folders
ECS Blueprints for Terraform is maintained by AWS Solution Architects. It is not part of an AWS service and support is provided best-effort by the ECS Blueprints community.
To post feedback, submit feature ideas, or report bugs, please use the Issues section of this GitHub repository.
For architectural details, step-by-step instructions, and customization options, see our documentation under each folder.
If you are interested in contributing to ECS Blueprints, see the Contribution guide.
See CONTRIBUTING for more information.
See CONTRIBUTING for more information.
Configure and deploy complete ECS solutions with Terraform or CDK
HCL
299
238 commits
updated Oct 18, 2026
Welcome to Amazon ECS Blueprints!
When new users want to adopt containers to build, deploy, and run their applications, it often takes them several months to learn, setup, and realize container benefits. With Amazon Elastic Container Service (ECS) and AWS Fargate users don't need to manage any middleware, any EC2, or host OS. With ECS Solution Blueprints, we want new users to achieve benefits of container-based modernization in hours rather than months!
The blueprints are meant to give new users a jumpstart, and enable them to learn-by-doing. With blueprints we aspire to codify best practices, well-designed architecture patterns, and provide end-to-end solutions addressing CI/CD, observability, security, and cost efficiency.
We fully expect you to get started by copying the modules and examples but we do not expect you to maintain any conformity to this repository. In others words, we expect that you will adapt and extend the modules and examples code to suit your needs. If you feel your use cases and solutions will help other users, we encourage you to contribute your solutions to ECS Solution Blueprints.
~/.aws/credentials. You need to use the following format:[AWS_PROFILE_NAME]
aws_access_key_id = Replace_with_the_correct_access_Key
aws_secret_access_key = Replace_with_the_correct_secret_Key
export AWS_PROFILE=your_profile_name
~/.aws/config. Something like:[default]
output = json
region = us-west-2
Please refer ECS Blueprints Workshop in detail.
Fork this repository.
Clone your forked repository to your laptop/Cloud9 VM.
git clone https://github.com/<your-repo>/ecs-blueprints.git
core-infra to create cluster, VPC, and require IAMcd ecs-blueprints/terraform/fargate-examples/core-infra/
terraform init
terraform plan
terraform apply --auto-approve
cd ../lb-service
terraform init
terraform plan
terraform apply --auto-approve
You can use the ALB URL from terraform output to access the load balanced service. The above will give you a good understanding about the basics of ECS Fargate, and ECS service. You can use these as building blocks to create and deploy many ECS services. Next you can try other example blueprints.
This repository has 3 main folders
ECS Blueprints for Terraform is maintained by AWS Solution Architects. It is not part of an AWS service and support is provided best-effort by the ECS Blueprints community.
To post feedback, submit feature ideas, or report bugs, please use the Issues section of this GitHub repository.
For architectural details, step-by-step instructions, and customization options, see our documentation under each folder.
If you are interested in contributing to ECS Blueprints, see the Contribution guide.
See CONTRIBUTING for more information.
See CONTRIBUTING for more information.