Skip to content

Commit 56efaf5

Browse files
cosmindevMaxrovr
authored andcommitted
Added - Support for Add DB 23ai support to Globally Distributed Autonomous Database
1 parent f40f4f7 commit 56efaf5

File tree

32 files changed

+1615
-29
lines changed

32 files changed

+1615
-29
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Overview
2-
This is a Terraform configuration that creates the Globally Distributed Database service on Oracle Cloud Infrastructure.
2+
This is a Terraform configuration that creates the Globally Distributed Database 19c service on Oracle Cloud Infrastructure.

examples/globally_distributed_database/oci_globally_distributed_database_private_endpoints.tf renamed to examples/globally_distributed_database/globally_distributed_database_19c/oci_globally_distributed_database_private_endpoints.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ resource "oci_globally_distributed_database_private_endpoint" "this" {
99
description = "Test OCI Globally Distributed Database Private Endpoint"
1010
#freeform_tags = var.oci_globally_distributed_database_freeform_tags
1111
nsg_ids = var.nsg_ocids
12+
13+
lifecycle {
14+
ignore_changes = [
15+
sharded_databases,
16+
]
17+
}
1218
}

examples/globally_distributed_database/outputs.tf renamed to examples/globally_distributed_database/globally_distributed_database_19c/outputs.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ output "oci_globally_distributed_database_sharded_database_non_secret" {
1111
oci_globally_distributed_database_sharded_database = {
1212
catalog_details = [
1313
for catalog_detail in oci_globally_distributed_database_sharded_database.this.catalog_details : {
14-
admin_password = nonsensitive(catalog_detail.admin_password)
14+
//admin_password = nonsensitive(catalog_detail.admin_password)
1515
cloud_autonomous_vm_cluster_id = catalog_detail.cloud_autonomous_vm_cluster_id
1616
compute_count = catalog_detail.compute_count
1717
container_database_id = catalog_detail.container_database_id
@@ -58,7 +58,7 @@ output "oci_globally_distributed_database_sharded_database_non_secret" {
5858
private_endpoint = oci_globally_distributed_database_sharded_database.this.private_endpoint
5959
shard_details = [
6060
for shard_detail in oci_globally_distributed_database_sharded_database.this.shard_details : {
61-
admin_password = nonsensitive(shard_detail.admin_password)
61+
//admin_password = nonsensitive(shard_detail.admin_password)
6262
cloud_autonomous_vm_cluster_id = shard_detail.cloud_autonomous_vm_cluster_id
6363
compute_count = shard_detail.compute_count
6464
container_database_id = shard_detail.container_database_id
@@ -94,6 +94,7 @@ output "oci_globally_distributed_database_sharded_database_non_secret" {
9494
data_source_sharded_database = data.oci_globally_distributed_database_sharded_database.this
9595
data_source_sharded_databases = data.oci_globally_distributed_database_sharded_databases.this
9696
}
97+
sensitive = true
9798
}
9899

99100
output "oci_globally_distributed_database_sharded_database" {

examples/globally_distributed_database/provider.tf renamed to examples/globally_distributed_database/globally_distributed_database_19c/provider.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ provider "oci" {
1010
region = var.region
1111
}
1212

13-
provider "local" {
14-
version = ">=1.3.0" # Need this version of the local provider to support base64 encoded inputs
15-
}
13+
1614

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
data "oci_globally_distributed_database_private_endpoint" "this" {
2+
#Required
3+
private_endpoint_id = oci_globally_distributed_database_private_endpoint.this.id
4+
}
5+
6+
data "oci_globally_distributed_database_private_endpoints" "this" {
7+
#Required
8+
compartment_id = oci_globally_distributed_database_private_endpoint.this.compartment_id
9+
10+
#Optional
11+
display_name = oci_globally_distributed_database_private_endpoint.this.display_name
12+
state = oci_globally_distributed_database_private_endpoint.this.state
13+
}
14+
15+
data "oci_globally_distributed_database_sharded_database" "this" {
16+
#Required
17+
sharded_database_id = oci_globally_distributed_database_sharded_database.this.id
18+
19+
#Optional
20+
metadata = "test" //oci_globally_distributed_database_sharded_database.this.metadata
21+
}
22+
23+
data "oci_globally_distributed_database_sharded_databases" "this" {
24+
#Required
25+
compartment_id = oci_globally_distributed_database_sharded_database.this.compartment_id
26+
27+
#Optional
28+
display_name = oci_globally_distributed_database_sharded_database.this.display_name
29+
state = oci_globally_distributed_database_sharded_database.this.state
30+
}

0 commit comments

Comments
 (0)