[英]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.使用 shell 脚本创建 ecs 任务定义的新修订版并更新 ecs 服务。
Could you please help me out with the aws cli commands (with example) to achieve the same?你能帮我用 aws cli 命令(举例)来实现同样的目标吗?
Thanks谢谢
You would just call aws ecs register-task-definition
again, the same command you used to create the initial task definition.您只需再次调用
aws ecs register-task-definition
,与您用于创建初始任务定义的命令相同。 A new revision number will be assigned, and returned in the output, each time you call that.每次调用时,都会分配一个新的修订号,并在 output 中返回。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.