Implement PlanResourceChange on Destroy Support #364
Labels
breaking-change
This PR introduces a breaking change or the resolution of this issue may require a breaking change.
enhancement
New feature or request
Milestone
Module version
Use-cases
The provider protocol may soon support enabling destroy plans that call the
PlanResourceChange
RPC. This will enable providers to return warning or error diagnostics when resources are destroy planned.This framework can opt into the new capability and support it via the existing
ResourceWithModifyPlan
interfaceModifyPlan
methods. Technically this is already enabled in the framework logic, however there are no protections if providers do something unexpected, such as modifying the response planned state from being empty, which should have guardrails to prevent unexpected behaviors.Proposal
ResourceWithModifyPlan
interfaceModifyPlan
(future provider capabilities closer or after 1.0 should likely be surfaced as opt-in flags)The text was updated successfully, but these errors were encountered: