Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS ECS Task definition update

I'm setting up new services in ECS and have updated my task definition many times. When I do so, I need to edit the correspondent service and update the version to the latest.

Is there a way to automatically update an AWS service with the latest version of its correspondent task definition when it's updated?

like image 228
Shams Larbi Avatar asked Oct 23 '25 14:10

Shams Larbi


1 Answers

To force ECS service to re-evaluated the task definition and pull the new container image. use

aws ecs update-service --cluster cluster_name --service service_name --force-new-deployment

like image 86
Asri Badlah Avatar answered Oct 26 '25 11:10

Asri Badlah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!