terrajet
terrajet copied to clipboard
Treat `Schema.ForceNew == true` attributes as immutable once set
What problem are you facing?
Because we set the prevent_destroy
lifecycle meta-argument, if a Terraform configuration argument with Schema.ForceNew
set to true
in its schema is modified, terraform plan
calls fail complaining about the prevent_destroy
arg.
How could Terrajet help solve your problem?
Because to adhere to XRM we set the prevent_destroy
lifecycle meta-argument, with the introduction of validating admission webhooks in Crossplane, we can consider using the ForceNew
schema to prevent modification of such parameters once they are set.
https://github.com/crossplane/crossplane-tools/issues/40 should help when it's implemented.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.