-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECS Service can't update desired replicas when Blue Green deployment is enabled #13658
Comments
I encountered the same problem. Including Looking into the debug log, I found the order of the networkConfiguration of current state (ecs/DescribeServices)
networkConfiguration of update request (ecs/UpdateService)
The attribute type of However, it seems d.hasChange("network_configuration") returns true somehow since the request includes the I'm not familiar with the codebase so I might look at unrelated place though. |
I'm having the same issue, trying to add tags to a service. In the plan only appears the tags being changed. During the apply I get this error: "InvalidParameterException: Unable to update network parameters on services with a CODE_DEPLOY deployment controller. Use AWS CodeDeploy to trigger a new deployment." Including network_configuration as ignore_changes is not helping. |
Having the same issues while trying to update the desired count of tasks, any updates on this? |
Having the same issue when trying to update the platform version. |
Same here, when trying to modify something as harmless as the tags. |
Hi, same Problem here when i changed desired_count over Terraform: Error: Error updating ECS Service InvalidParameterException: Unable to update network parameters on services with a CODE_DEPLOY deployment controller. Use AWS CodeDeploy to trigger a new deployment. |
Hi all, what about updates on this issue ? This is very important for us. We are running terraform-pipelines in production with ecs_service and CODE_DEPLOY deployment controller. Updates on the service with terraform are not possible over this way ! |
Hello Team, Do you have any update/ETA on this issue? We have TF Cloud customer (Team & Governance) affected by the same issue . Regards, |
I tried to use CODE_DEPLOY with terraform but got either unable to update task definition or unable to update network configuration. I can't deploy anything. This is nightmare. |
FWIW, the way I was able to control desired_count is by adding an autoscaling group. I'm not using it to autoscale, since I have the min/max set to the same number and the cpu target_value 99. It just acts as a way to modify desired_count which seems to play well with terraform and the CODE_DEPLOY deployment_controller type:
|
I'm trying to replicate the issue with acceptance tests here. I hope to open a PR about this |
Could the PR made earlier this year, which references this issue, be reviewed? It's a fairly small change. We believe this to be a good way to address this, having resorted to using our own fork with that PR to address this for now and can confirm this resolves it for us. |
Hi all 👋 Just letting you know that this is issue is featured on this quarters roadmap. If a PR exists to close the issue a maintainer will review and either make changes directly, or work with the original author to get the contribution merged. If you have written a PR to resolve the issue please ensure the "Allow edits from maintainers" box is checked. Thanks for your patience and we are looking forward to getting this merged soon! |
Hi @breathingdust, I'm trying to replicate the issue with a test, but it currently seems to work as expected. I'll try different changes to raise the error. |
Hi @breathingdust, I've written the test case that replicates the issue. When I try to update the Cheers |
@dirk39 v2.9.0 of |
@ewbankkit let me update the branch and add further tests to cover all the fields allowed by the APIs |
#22034 validates that this has been fixed via |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform Version
Terraform v0.12.26
Affected Resource(s)
Terraform Configuration Files
Debug Output
plan logs
apply logs
Expected Behavior
Should be able to update ECS Service
desired_replicas
even whendeployment_controller.type
is set toCODE_DEPLOY
Actual Behavior
Steps to Reproduce
deployment_controller.type = CODE_DEPLOY
desired_count
and attempt to apply changes againImportant Factoids
network_configuration
property, TF included it in the payload toupdate-service
requestnetwork_configuration
desired_count
and can by reproduced by making changes totask_placement_constaints
tooReferences
The text was updated successfully, but these errors were encountered: