how to create new aws ecs task defination revision

331 views
Skip to first unread message

Jagadeesh Aluri

unread,
Aug 23, 2015, 10:06:15 AM8/23/15
to Terraform
Hi Team,

my ecs task has a tomcat running in a docker container. I would like to increase the task revision whenever I have a new code to deploy. but I couldn't find a way to increment revision. I tried terrform taint , but that didn't work well. I know that's not the right way. but wondering how to increment revision. that way docker container get re-created with latest code.

Regards,
Jagadeesh.

Jagadeesh Aluri

unread,
Aug 23, 2015, 11:51:02 AM8/23/15
to Terraform
never mind.

as per aws blog also, we have to re-create task and assign to service.

https://blogs.aws.amazon.com/application-management/post/Tx32RHFZHXY6ME1/Set-up-a-build-pipeline-with-Jenkins-and-Amazon-ECS

so it's kind of same of tainting task definition and service. after that it's working as expected .

Regards,
Jagadeesh.
Reply all
Reply to author
Forward
0 new messages