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
Thanks for filing the issue. This is currently expected, since there are elements of the configuration which do come into play even during a destroy operation. We also need to take into account that providers expect all resources to be read before they are destroyed, which currently requires a normal plan to be executed internally before the destroy plan is constructed.
Because the validation and destroy plan happen in different phases of execution it makes the change a bit more difficult, but I'm going to update this to an enhancement request to see if that change can be made at all.
jbardin
changed the title
Destroy operation still performs validation checks
Skip ValidateResourceConfig when the resource is only being destroyed
Sep 19, 2023
Terraform Version
Terraform Configuration Files
Debug Output
│ Error: versioning_configuration.status cannot be updated from 'Enabled' to 'Disabled'
Expected Behavior
When destroy is called terraform should not perform any validation and just delete target objects
Actual Behavior
Checks are done as it seems
Steps to Reproduce
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: