Open ashhammond opened 3 years ago
Hi @ashhammond I believe this is probably going to be a bug with terraform itself - i'll raise it with them and see what they say, but ultimately the provider has no input on how the resource dependencies are managed by terraform.
Community Note
Terraform Version
Terraform v0.14.11
PingFederate
pingidentity/pingfederate:9.3.3-edge
Affected Resource(s)
A PingFederate authentication policy has been created that includes a selector, adapter and sp connection. These resource are created by using a terraform loop
for_each
, iterating over a list of strings.If one of the string is removed from the list of strings, triggering a destroy of those resources, terraform tries to destroy the selector before destroying the policy, showing the below error.
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Terraform honours the dependancies.
Actual Behavior
Terraform honours the dependancies.
Steps to Reproduce
Using the above replicator.
terraform apply
"foo2"
terraform
apply`Important Factoids
References
0000