From 31534b4f3ff6c9247fefd4057466152f26592072 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Tue, 26 Nov 2024 19:38:30 +0000 Subject: [PATCH] add deletion_protection for autonomousDatabase resource (#12298) [upstream:6eb3aa904157f7fe8e11671c669f2b6f5a355c18] Signed-off-by: Modular Magician --- oracledatabase_autonomous_database_basic/main.tf | 1 + oracledatabase_autonomous_database_full/main.tf | 1 + 2 files changed, 2 insertions(+) diff --git a/oracledatabase_autonomous_database_basic/main.tf b/oracledatabase_autonomous_database_basic/main.tf index f56c1e46..4ce64689 100644 --- a/oracledatabase_autonomous_database_basic/main.tf +++ b/oracledatabase_autonomous_database_basic/main.tf @@ -13,6 +13,7 @@ resource "google_oracle_database_autonomous_database" "myADB"{ db_workload = "OLTP" license_type = "LICENSE_INCLUDED" } + deletion_protection = "true-${local.name_suffix}" } data "google_compute_network" "default" { diff --git a/oracledatabase_autonomous_database_full/main.tf b/oracledatabase_autonomous_database_full/main.tf index 85ad5834..100d2595 100644 --- a/oracledatabase_autonomous_database_full/main.tf +++ b/oracledatabase_autonomous_database_full/main.tf @@ -31,6 +31,7 @@ resource "google_oracle_database_autonomous_database" "myADB"{ private_endpoint_ip = "10.5.0.11" private_endpoint_label = "testhost" } + deletion_protection = "true-${local.name_suffix}" } data "google_compute_network" "default" {