Suraj Naik
Suraj Naik

Reputation: 199

How to create a new revision of a task definition in ecs using aws cli?

Working on a shell script to create a new revision of a ecs task definition & update the ecs service.

Could you please help me out with the aws cli commands (with example) to achieve the same?

Thanks

Upvotes: 6

Views: 5840

Answers (1)

Mark B
Mark B

Reputation: 200476

You would just call aws ecs register-task-definition again, the same command you used to create the initial task definition. A new revision number will be assigned, and returned in the output, each time you call that.

Upvotes: 5

Related Questions