Terraform on AWS: Nonprod and Production Environments · Containers and Compute: ECR, ECS Fargate and EC2

ECS Fargate Service: Task Definition, Autoscaling and Circuit Breaker

Define an ECS Fargate service with a task definition, ALB target group registration, a deployment circuit breaker to auto-roll back on health check failures, and Application Auto Scaling.

Members can save this page, take notes and track progress. See membership · Sign in

What you'll build

An ECS Fargate service that runs your containerised API behind the ALB built in the network module. The service has a task definition (CPU, memory, container definition, log group, IAM roles), a deployment circuit breaker that rolls back automatically when health checks fail, and Application Auto Scaling that scales between a minimum and maximum count based on CPU utilisation.

Premium course

Keep reading with a membership

The rest of this lesson, its practice questions and the whole Terraform on AWS: Nonprod and Production Environments course are part of the membership.

See plans Sign in

Open in the app to mark lessons complete, take notes and track your progress.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake