Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 732
aknuds1 Avatar asked Oct 07 '22 05:10

aknuds1


People also ask

How do I update my ECS task?

Open the Amazon ECS console at https://console.aws.amazon.com/ecs/ . From the navigation bar, choose the Region that contains your task definition. In the navigation pane, choose task definitions. On the task definitions page, select the box to the left of the task definition to revise and choose Create new revision.


1 Answers

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
like image 173
Dima Avatar answered Oct 08 '22 17:10

Dima