ExitAmazon ECS: service deployments and health-driven replacement1 / 9
Explanation

Rolling deployment replaces tasks, not running containers

How ECS replaces task revisions during rolling and blue/green deployments, uses health signals to determine deployment success, and exposes failures that require rollback. · advanced

An ECS service deployment replaces tasks with tasks launched from the selected task definition revision; it does not edit containers already running. Registering a revision alone does not update a service. Updating the service to that revision starts replacement, while a force new deployment can replace tasks without changing the revision.

For a rolling deployment, minimumHealthyPercent sets the lower healthy-task bound, rounded up from the desired count. maximumPercent sets the upper bound on RUNNING and PENDING tasks, rounded down. With desired count 4, minimum 100%, and maximum 150%, ECS must preserve 4 healthy tasks and can have up to 6 RUNNING or PENDING tasks. This permits starting replacements before stopping old tasks, provided capacity exists.

These bounds control replacement progress, not application correctness. With both percentages at 100%, a service cannot start an extra task or stop a healthy old task to begin replacement. Where the bounds permit progress, ECS starts replacements and retires old tasks as health and capacity allow; it does not require one fixed batch size.