Closed abarfoot closed 6 years ago
Just tested and unfortunately still doesn't work :(
* aws_ecs_service.app: InvalidParameterException: The target group with targetGroupArn arn:aws:elasticloadbalancing:us-east-1:367555685970:targetgroup/depends-on-test-dev/b96ad7836a2fe8e7 does not have an associated load balancer.
Tested with:
Terraform v0.11.8
+ provider.aws v1.33.0
Going to close this for now. We can always re-test/re-open later.
By moving the dependency from the listener to the target group, users should be able to delete lb-http.tf without needing to update the dependency in ecs.tf.
The dependency is apparently no longer strictly required, because this merged PR https://github.com/terraform-providers/terraform-provider-aws/pull/3535 added retry logic for creating the ecs_service resource.
However, they still recommend a dependency to avoid a failed attempt. From https://github.com/terraform-providers/terraform-provider-aws/issues/3495 :
Untested.