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?
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With