You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terraform-plugin-framework 0.10.0+ and Terraform 1.3+ support the ability for provider developers to return warning and/or error diagnostics when a resource is planned for destruction. The initial website documentation mentions the feature, but doesn't provide a quick code example. It'd be great to provide that.
Attempted Solutions
Figuring it out through trial and error or looking at other provider code.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Module version
Use-cases
terraform-plugin-framework 0.10.0+ and Terraform 1.3+ support the ability for provider developers to return warning and/or error diagnostics when a resource is planned for destruction. The initial website documentation mentions the feature, but doesn't provide a quick code example. It'd be great to provide that.
Attempted Solutions
Figuring it out through trial and error or looking at other provider code.
Proposal
Add a quick subsection to https://www.terraform.io/plugin/framework/resources/plan-modification#resource-plan-modification that's specifically "Resource Destroy Plan Diagnostics" and something that shows
req.Plan.IsNull()
withresp.Diagnostics.AddWarning()
.References
The text was updated successfully, but these errors were encountered: