1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
Hello.
As stated in the documentation below, if your ECS is managed by AWS CodeDeploy, you must use "CreateDeployment" to update it.
https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateService.html
For services using the blue/green (CODE_DEPLOY) deployment controller, only the desired count, deployment configuration, health check grace period, task placement constraints and strategies, enable ECS managed tags option, and propagate tags can be updated using this API. If the network configuration, platform version, task definition, or load balancer need to be updated, create a new AWS CodeDeploy deployment. For more information, see CreateDeployment in the AWS CodeDeploy API Reference.
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전
Hello. Do you mean "aws code deploy -> applications -> deployments -> create deployment" ?
There is "Use AppSpec editor" and I can not find EnableCommandExecution.
Should I set Enable Command Execution by using appspec editor?
As an example, if you want to update using a command, I think it would be a good idea to do the following. https://awscli.amazonaws.com/v2/documentation/api/latest/reference/deploy/create-deployment.html
I tried the command and deployment was created. But Error raised.
Sorry, I was looking at the wrong document. It seems that EnableExecuteCommand cannot be enabled in AppSpec. https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-resources.html#reference-appspec-file-structure-resources-ecs