英文:
Cannot update ECS Fargate service
问题
我正在运行一个ECS Fargate服务,其中deploymentController
设置为CODE_DEPLOY
。
现在,当我使用aws cli执行--force-new-deployment
时,我收到以下错误消息。
An error occurred (InvalidParameterException) when calling the UpdateService operation: Cannot force a new deployment on services with a CODE_DEPLOY deployment controller. Use AWS CodeDeploy to trigger a new deployment.
即使在文档中也没有提到有关更新方案的信息 https://docs.aws.amazon.com/cli/latest/reference/ecs/update-service.html
有没有任何解决方法?
英文:
I am running an ECS Fargate service with deploymentController
as CODE_DEPLOY
.
Now, when I --force-new-deployment
using aws cli.
AWS CLI Command
aws ecs update-service --cluster my-cluster --service my-service --force-new-deployment
I get following error.
An error occurred (InvalidParameterException) when calling the UpdateService operation: Cannot force a new deployment on services with a CODE_DEPLOY deployment controller. Use AWS CodeDeploy to trigger a new deployment.
Even in the docs it's not mentioned regariding teh update scenarios https://docs.aws.amazon.com/cli/latest/reference/ecs/update-service.html
Is there any workaround this?
答案1
得分: 2
你正在使用 CodeDeploy
来管理部署,而不是 Amazon ECS
。
在 AWS Classic Console
中,强制部署选项在后台使用 CodeDeploy
<br/>。
目前,ecs-cli 不支持对 CodeDeploy
部署控制器的强制部署功能。
英文:
You are using CodeDeploy
to manage deployments and not Amazon ECS
.
In the AWS Classic Console
, the forced deployment option uses Code Deploy
behind the scenes <br/>
At the moment ecs-cli does not support the forced deployment feature for Code Deploy
deployment controller
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论