Destroying an aws_elb results in an orphaned aws_load_balancer_policy state #5914
Labels
bug
Addresses a defect in current functionality.
service/elb
Issues and PRs that pertain to the elb service.
Milestone
Community Note
Terraform Version
Affected Resource(s)
aws_load_balancer_policy
aws_elb
Terraform Configuration Files
Debug Output
Expected Behavior
Destruction of environment as planned.
Actual Behavior
Seems like the
aws_elb
was destroyed before the policy objects. Despite the policy + attachment + load balancer pattern used in the resources, it appears from the console that these policies are actually an integral part of the load balancer and are destroyed along with it. The results in orphaned state which then cannot be destroyed.Steps to Reproduce
aws_elb
with attached policyterraform destroy
and observe it failingThe text was updated successfully, but these errors were encountered: