Skip to content

Commit 7cbe7d4

Browse files
Update test for Oracle Database@Google Cloud Autonomous AI Database Disaster Recovery (#16813) (#1262)
[upstream:cf483386935d49214ebb659653540f0d66ad7624] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent f0b2369 commit 7cbe7d4

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

  • oracledatabase_autonomous_database_disaster_recovery

oracledatabase_autonomous_database_disaster_recovery/main.tf

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
1+
resource "google_oracle_database_autonomous_database" "adb-dr"{
2+
autonomous_database_id = "my-instance-${local.name_suffix}"
3+
location = "us-east4"
4+
project = "my-project-${local.name_suffix}"
5+
database = "mydatabase-${local.name_suffix}"
6+
admin_password = "123Abpassword"
7+
properties {
8+
compute_count = "2"
9+
data_storage_size_gb="20"
10+
db_version = "19c"
11+
db_workload = "OLTP"
12+
license_type = "LICENSE_INCLUDED"
13+
mtls_connection_required = "true"
14+
}
15+
deletion_protection = "true-${local.name_suffix}"
16+
}
17+
18+
119
resource "google_oracle_database_autonomous_database" "myADB"{
2-
autonomous_database_id = "my-primary-adb-id-${local.name_suffix}"
20+
autonomous_database_id = "my-instance-${local.name_suffix}"
321
location = "my-location-${local.name_suffix}"
422
project = "my-project-${local.name_suffix}"
523
source_config {
6-
autonomous_database = ""projects/my-project/locations/us-east4/autonomousDatabases/adb-id"-${local.name_suffix}"
24+
autonomous_database = google_oracle_database_autonomous_database.adb-dr.name
725
automatic_backups_replication_enabled = "false-${local.name_suffix}"
826
}
927
deletion_protection = "true-${local.name_suffix}"

0 commit comments

Comments
 (0)