简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM