Warning on providers that make unsafe references to resource attributes #32570
Labels
enhancement
new
new issue not yet triaged
unknown-values
Issues related to Terraform's treatment of unknown values
Terraform Version
Use Cases
Terraform provider with dependency on another TF resource (Kubernetes cluster, Databricks workspace, AWS IAM role, etc.)
Attempted Solutions
n/a
Proposal
In response to issues:
#31520
#30910
It would be helpful for Terraform to generate a warning on parse or validation to indicate that a provider has a dependency on attributes exported from a resource.
While the docs say this is unsupported, what happens in practice is something like:
apply
works greatapply
generates weird errors, often related to authentication, because the provider depends on affected resources and Terraform is unable to refresh existing resources in stateMany, many hours of troubleshooting could have been saved with a warning up front like "this is unsupported and may cause problems in , here's a link to relevant docs"
References
#31520
#30910
The text was updated successfully, but these errors were encountered: