mikestead / ecs-task-deploy

Update an AWS ECS task definition with Docker image and trigger a blue/green deployment
38 stars 11 forks source link

Adding --kill-task option to support blue/green rollout when no spare capacity #2

Closed mikestead closed 7 years ago

mikestead commented 7 years ago

In order to roll a blue/green deployment there must be spare capacity available to spin up a task based on your updated task definition. If there's not capacity to do this your deployment will fail.

An alternate option provided here is --kill-task. This will attempt to stop an existing task, making way for the blue/green rollout.

This has obvious implications, reducing your horizontal scale by one during the deployment. If you're only running a single task you'll experience some down time.