Open linouk23 opened 2 years ago
Note: There's a built-in GCP resource to add addtl deletion protection past Terraform's plan stage / lifecycle rule, https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/resource_manager_lien.
It's still opt-in, so an opt-out deletion_protection
is still valuable, but less so that for some other resources w/o addtl protections.
Agree with @rileykarson that while liens are useful if deletion is attempted outside of TF, removing lien definition together with project definition from a .tf
file will cause TF to happily nuke both.
Hence having opt-out deletion_protection
option will be useful.
Community Note
Description
Did we consider adding
deletion_protection
attribute (similar togoogle_bigquery_table
resource to prevent users from accidentally deleting the project?New or Affected Resource(s)
Potential Terraform Configuration
b/350514911