1 Answer
- Newest
- Most votes
- Most comments
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.
Relevant content
- asked 8 months ago
- asked 2 years ago
- asked 2 years ago
- asked 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
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