Skip to content

Commit f1def60

Browse files
abzambreMeharwadeDivya
authored andcommitted
Added - Support for database/db system tags, fault domains, license model, node count, private ip, and time-zone to creating data guard association (with new db system) service
1 parent e156476 commit f1def60

File tree

5 files changed

+342
-220
lines changed

5 files changed

+342
-220
lines changed

examples/database/dataguard/vm_shape/dataguard.tf

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,21 @@ resource "oci_database_data_guard_association" "test_data_guard_association" {
122122
delete_standby_db_home_on_delete = "true"
123123

124124
#required for NewDbSystem creation_type
125-
display_name = "TFExampleDataGuardAssociationVM"
126-
shape = "VM.Standard2.1"
127-
subnet_id = oci_core_subnet.test_subnet.id
128-
availability_domain = oci_core_subnet.test_subnet.availability_domain
129-
nsg_ids = [oci_core_network_security_group.test_network_security_group.id]
130-
hostname = "ocidb"
125+
display_name = "TFExampleDataGuardAssociationVM"
126+
shape = "VM.Standard2.1"
127+
subnet_id = oci_core_subnet.test_subnet.id
128+
availability_domain = oci_core_subnet.test_subnet.availability_domain
129+
nsg_ids = [oci_core_network_security_group.test_network_security_group.id]
130+
hostname = "ocidb"
131+
db_system_defined_tags = "${map("example-tag-namespace-all.example-tag", "dbSystemDefinedTags1")}"
132+
db_system_freeform_tags = {"dbSystemFreeformTagsK" = "dbSystemFreeformTagsV"}
133+
database_defined_tags = "${map("example-tag-namespace-all.example-tag", "databaseDefinedTags1")}"
134+
database_freeform_tags = {"databaseFreeformTagsK" = "databaseFreeformTagsV"}
135+
fault_domains = ["FAULT-DOMAIN-3"]
136+
license_model = "LICENSE_INCLUDED"
137+
node_count = "1"
138+
private_ip = "10.0.2.223"
139+
time_zone = "US/Pacific"
131140
}
132141

133142
resource "oci_core_network_security_group" "test_network_security_group" {

0 commit comments

Comments
 (0)