无法更新 ECS Fargate 服务。

huangapple go评论72阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年7月14日 07:33:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76683862.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定