From ddffcacb220581ff485bbb2cb48d4e6d00a5f340 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Tue, 26 Nov 2024 19:41:54 +0000 Subject: [PATCH] Add deletion_protection field for cloudExadataInfrastructure resource (#12296) [upstream:df8eb1b47a810a557f8216558b4fcc8f2df3c97c] Signed-off-by: Modular Magician --- oracledatabase_cloud_exadata_infrastructure_basic/main.tf | 2 ++ oracledatabase_cloud_exadata_infrastructure_full/main.tf | 2 ++ oracledatabase_cloud_vmcluster_basic/main.tf | 2 ++ oracledatabase_cloud_vmcluster_full/main.tf | 2 ++ 4 files changed, 8 insertions(+) diff --git a/oracledatabase_cloud_exadata_infrastructure_basic/main.tf b/oracledatabase_cloud_exadata_infrastructure_basic/main.tf index 7b535644..afcdf722 100644 --- a/oracledatabase_cloud_exadata_infrastructure_basic/main.tf +++ b/oracledatabase_cloud_exadata_infrastructure_basic/main.tf @@ -8,4 +8,6 @@ resource "google_oracle_database_cloud_exadata_infrastructure" "my-cloud-exadata compute_count= "2" storage_count= "3" } + + deletion_protection = "true-${local.name_suffix}" } diff --git a/oracledatabase_cloud_exadata_infrastructure_full/main.tf b/oracledatabase_cloud_exadata_infrastructure_full/main.tf index 8e768c90..7ce887ed 100644 --- a/oracledatabase_cloud_exadata_infrastructure_full/main.tf +++ b/oracledatabase_cloud_exadata_infrastructure_full/main.tf @@ -27,4 +27,6 @@ resource "google_oracle_database_cloud_exadata_infrastructure" "my-cloud-exadata labels = { "label-one" = "value-one" } + + deletion_protection = "true-${local.name_suffix}" } diff --git a/oracledatabase_cloud_vmcluster_basic/main.tf b/oracledatabase_cloud_vmcluster_basic/main.tf index b49cf008..2efcffaa 100644 --- a/oracledatabase_cloud_vmcluster_basic/main.tf +++ b/oracledatabase_cloud_vmcluster_basic/main.tf @@ -28,6 +28,8 @@ resource "google_oracle_database_cloud_exadata_infrastructure" "cloudExadataInfr compute_count= "2" storage_count= "3" } + + deletion_protection = "true-${local.name_suffix}" } data "google_compute_network" "default" { diff --git a/oracledatabase_cloud_vmcluster_full/main.tf b/oracledatabase_cloud_vmcluster_full/main.tf index 94504813..3896b2a1 100644 --- a/oracledatabase_cloud_vmcluster_full/main.tf +++ b/oracledatabase_cloud_vmcluster_full/main.tf @@ -49,6 +49,8 @@ resource "google_oracle_database_cloud_exadata_infrastructure" "cloudExadataInfr compute_count= "2" storage_count= "3" } + + deletion_protection = "true-${local.name_suffix}" } data "google_compute_network" "default" {