[Bug]: Unable to set the propagate_tags setting for an existing ECS Service Blue Green deployment (Deployment Controller = Code Deploy) #37410
Labels
bug
Addresses a defect in current functionality.
service/ecs
Issues and PRs that pertain to the ecs service.
Terraform Core Version
1.5.5
AWS Provider Version
5.41.0
Affected Resource(s)
aws_ecs_service
Expected Behavior
When setting the
propagate_tags
config for an existing BlueGreen deployed ECS service the provider should be able to apply the change as the AWS CLI docs for the UpdateService request state:Actual Behavior
The Provider errors out due to the Blue Green deployment setup with Code Deploy for the ECS service. Stating that the change should be done through Code Deploy instead of Terraform even though the change is allowed by AWS for Blue Green deployed ECS services.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Relevant ECS resource configs set:
Steps to Reproduce
Important note: This should done on an already existing BlueGreen deployed ECS Service. If these settings were set for a brand new BlueGreen ECS Service then it doesn't error out - It only errors out when updating this setting on Services that are already up.
propagate_tags
configuration to the TF resource for the ECS serviceterraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
propagate tags
update to Blue Green (Code Deploy) ECS services: https://docs.aws.amazon.com/cli/latest/reference/ecs/update-service.htmlTo add to this issue, updating the
appspec
file does not work since the PropagateTags property is not support as something to be set within the file. This could have been one of the ways to work around this issue.Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: