How do I deploy updated Docker images to Amazon ECS tasks?

aknuds1 picture aknuds1 · Jan 17, 2016 · Viewed 55.8k times · Source

What is the right approach to make my Amazon ECS tasks update their Docker images, once said images have been updated in the corresponding registry?

Answer

Dima picture Dima · Feb 1, 2018

If your task is running under a service you can force a new deployment. This forces the task definition to be re-evaluated and the new container image to be pulled.

aws ecs update-service --cluster <cluster name> --service <service name> --force-new-deployment