Search code examples
amazon-web-servicesamazon-ecsaws-cli

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


Solution

  • 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.