01Chapter 1: From container image to running workloadThis chapter follows an image from your machine to a registry that ECS can pull from. It covers two outline parts: how an image becomes a running workload, and how to store images in Amazon ECR.2 min read
02Chapter 2: ECS building blocks: clusters, tasks, and servicesThis chapter assumes you can build a Docker image, read JSON, use the AWS CLI, and know what IAM roles, subnets, and security groups are. Here you learn the four ECS objects that every later chapter builds on.2 min read
03Chapter 3: What Fargate manages and what you still ownThis chapter assumes you know how to build and run a Docker image. It also assumes you know basic IAM, VPC, subnets, and security groups. You should have seen the ECS terms cluster, task, and service in the previous chapter.2 min read
04Chapter 4: Writing a Fargate task definitionA task definition is the blueprint ECS uses to start a task. This chapter assumes you can build a Docker image, read JSON, and know the basics of IAM and VPC. It walks through the fields Fargate requires and the common errors when you register one.2 min read
05Chapter 5: Choosing task CPU and memoryThis chapter assumes you can read a task definition and know what a container's memory limit means. Fargate sizes a task as a whole, and it accepts only certain CPU and memory pairs.2 min read
06Chapter 6: Task execution role versus task roleThis chapter assumes you know IAM roles and policies, have written a Fargate task definition, and can read JSON. A task definition can name two IAM roles. They look alike, but they act at different times and for different callers.2 min read
07Chapter 7: Networking tasks with awsvpcThis chapter assumes you know VPC basics (subnets, route tables, security groups) and have read the chapter on task definitions. It covers how Fargate tasks get network access and the errors that follow from getting it wrong.2 min read
08Chapter 8: Sending container logs to CloudWatch LogsThis chapter assumes you can read a Fargate task definition and know the difference between the task execution role and the task role. It covers how a container's output reaches CloudWatch Logs, and what breaks when it doesn't.2 min read
09Chapter 9: Injecting secrets and configurationThis chapter assumes you can read a Fargate task definition, know the difference between the task execution role and the task role, and can read an IAM policy. It builds on the web-app task definition from earlier chapters.2 min read
10Chapter 10: Running a long-lived serviceThis chapter assumes you can write a Fargate task definition, you know what a VPC subnet and a security group are, and you can use the AWS CLI. You have already registered the web-app task definition from the previous chapters.2 min read
11Chapter 11: Exposing a service through an Application Load BalancerThis chapter assumes you know ECS services, awsvpc networking, and security groups. It shows how to put an Application Load Balancer (ALB) in front of a Fargate service so clients reach your tasks through one stable address.2 min read
12Chapter 12: Health checks and the grace periodThis chapter assumes you can read a task definition and an ECS service command, and that you know what an Application Load Balancer (ALB) target group is. Two separate health checks decide whether a Fargate task keeps running, and they are easy to confuse.2 min read
13Chapter 13: Safe deployments with the circuit breakerThis chapter assumes you can register a task definition, create an ECS service on Fargate behind an Application Load Balancer, and read the service's event log. If any of that is unfamiliar, review the chapters on services and health checks first.3 min read
14Chapter 14: Scaling a service with target trackingThis chapter assumes you have a running ECS service on Fargate, as built in the earlier chapters, and that you can use the AWS CLI. You will attach target tracking auto scaling to that service so the number of tasks follows load.2 min read
15Chapter 15: Mixing Fargate and Fargate SpotThis chapter assumes you can write a Fargate task definition and create an ECS service with the AWS CLI. You should also know what desired count means. It covers capacity providers and how to use Fargate Spot without risking the whole service.2 min read
16Chapter 16: Ephemeral storage and shared storage with EFSThis chapter assumes you can read a Fargate task definition and have a working service with awsvpc networking and security groups. Here you decide where a container writes data that must outlive a file write, a container restart, or a task.2 min read
17Chapter 17: Diagnosing failed tasks and using ECS ExecThis chapter assumes you have a running Fargate service, know the task execution role from the task role, and can read CloudWatch Logs and use the AWS CLI. It shows how to find out why a task stopped, and how to open a shell in a running container.2 min read
18Chapter 18: Understanding Fargate costThis chapter assumes you can read a task definition, know how task CPU and memory are sized, and have seen capacity providers. It explains what Fargate bills for and which settings change the bill.2 min read