This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Treat Schema.ForceNew == true
attributes as immutable once set
#264
Labels
What problem are you facing?
Because we set the
prevent_destroy
lifecycle meta-argument, if a Terraform configuration argument withSchema.ForceNew
set totrue
in its schema is modified,terraform plan
calls fail complaining about theprevent_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 theForceNew
schema to prevent modification of such parameters once they are set.The text was updated successfully, but these errors were encountered: