hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.34k stars 1.74k forks source link

Add deletion_protection field for oracledatabase resources #20284

Open tulika-aakriti opened 3 days ago

tulika-aakriti commented 3 days ago

Community Note

Description

Update API is not supported yet which leads to deletion and creation of new resource when a user try to update a field, which is default terraform behaviour. We can add a deletion_protection field to warn user regarding the same.

New or Affected Resource(s)

Potential Terraform Configuration

References

No response

tulika-aakriti commented 1 day ago

We want to make an exception for this changes i.e. to add deletion_protection field in the resources (google_oracle_database_cloud_exadata_infrastructure, google_oracle_database_autonomous_database, google_oracle_database_cloud_vm_cluster) to be part for weekly release. The update API is not implemented so every update call from tf can lead to accidental deletion of database and there is no way for the customer to restore it. There are no active customers using terraform as we onboarded last week so this breaking change should not affect anyone.

cc- @rileykarson @slevenick