-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
circular dependency between aws_lb_listener_rule and aws_lb_target_group when replacing aws_lb_target_group #21588
Comments
I believe this would be fixed by adding |
Hey @khumps 👋 Thank you for taking the time to file this issue. Can you update the issue description with debug output as well so that we have all of the information necessary to investigate this? Additionally, it looks like you may have redacted/changed some of the Terraform config, based on the output you provided (totally understand needing to do this sometimes!). Can you confirm whether |
Hey Justin, I can definitely get some debug input when I get in tomorrow. |
@justinretzolk I have appended the relevant part of the debug logs to OP |
Any update on this? Having a similar issue but with a Listener instead of a Rule. |
When trying to do anything that causes the target group to be replaced (changing the name, port, etc) It detects that the listener rule can be updated in place but the target group can not be deleted until the listener rule is not depending on it.
The output of the terraform plan/apply is https://pastebin.com/yN6tHvM8 and will result in the provider timing out trying to delete the target group due to the relationship to the listener rule. To fix this, any change to listener_rule.target_group_arn needs to force replacement of the listener rule
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.0.4
on darwin_amd64
Affected Resource(s)
aws_lb_listener_rule
aws_lb_target_group
Terraform Configuration Files
Terraform logs (with TF_LOG=DEBUG)
https://pastebin.com/CZzrTSEc
The text was updated successfully, but these errors were encountered: