简体   繁体   English

如何使用 aws cli 在 ecs 中创建任务定义的新修订版?

[英]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.

相关问题 AWS CLI - 创建任务定义的新修订 - AWS CLI - Create New Revision of Task Definition ECS 任务。 如何在容器中使用 AWS CLI - ECS task. How to use AWS CLI within container AWS ECS 服务以及如何使用 Cloudformation 或 CLI 创建代码部署部署组 - AWS ECS Service and How to create a Code Deploy Deployment Group using Cloudformation or CLI 如何从现有任务定义创建 AWS 任务定义 JSON? - How to Create AWS Task Definition JSON from Existing task definition? 使用 Powershell 更新 AWS ECS 任务定义 - Update AWS ECS Task Definition with Powershell 如何将标签添加到 ECS 现有服务,使用 Terraform 定义任务 - How to add Tags to ECS existing Service, Task definition using Terraform 如何在 terraform ecs 任务定义中使用 postgres 数据库的 aws secret manager 值 - how to use aws secret manager values of a postgres database in terraform ecs task definition 没有任务角色的 AWS CDK ECS 任务定义 - AWS CDK ECS Task Definition Without Task Role AWS ECS 使用相同的任务定义和图像重新启动服务,无需停机 - AWS ECS restart Service with the same task definition and image with no downtime 使用 .NET 创建任务定义修订、更新 docker 标签和更新服务 - Create task definition revision, update docker tag and update service with .NET
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM