Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform CLI and Terraform AWS Provider Version
Terraform 12.0.6
provider.aws: version = "~> 3.21"
provider.local: version = "~> 2.0"
provider.template: version = "~> 2.2"
provider.tls: version = "~> 3.0"
Affected Resource(s)
aws_ecs_service
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
Error: InvalidParameterException: Creation of service was not idempotent. "name_of_ecs_service"
Error: Failed to update scaling policy: ValidationException: Target group target_group_name is not attached to resource name_of_ecs_service
Expected Behavior
Terraform should update ecs service object in aws with terraform apply
Actual Behavior
Terraform trying to create new ecs service before delete but still failing terraform apply
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform 12.0.6
Affected Resource(s)
aws_ecs_service
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
Terraform should update ecs service object in aws with
terraform apply
Actual Behavior
Terraform trying to create new ecs service before delete but still failing
terraform apply
Steps to Reproduce
terraform apply