Skip to content

Commit 9134721

Browse files
authored
Merge pull request #1783 from oracle/release_gh
Releasing version 4.110.0
2 parents 483146a + 2f08b6b commit 9134721

File tree

131 files changed

+617
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+617
-43
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
resource "random_string" "autonomous_database_admin_password" {
5+
length = 16
6+
min_numeric = 1
7+
min_lower = 1
8+
min_upper = 1
9+
min_special = 1
10+
}
11+
resource "time_sleep" "wait_300_seconds" {
12+
destroy_duration = "5m"
13+
depends_on = [oci_database_autonomous_database.autonomous_database_cross_region_dataguard_primary]
14+
}
15+
16+
resource "oci_database_autonomous_database" "autonomous_database_cross_region_dataguard_primary" {
17+
admin_password = random_string.autonomous_database_admin_password.result
18+
compartment_id = var.compartment_id
19+
cpu_core_count = "1"
20+
data_storage_size_in_tbs = "1"
21+
db_name = "adbdb11ff2"
22+
db_version = "19c"
23+
license_model = "LICENSE_INCLUDED"
24+
is_free_tier = "false"
25+
}
26+
27+
resource "oci_database_autonomous_database" "autonomous_database_cross_region_dataguard_standby" {
28+
#Note: this should be provisioned in another region as the source database.
29+
provider = oci.peer_region
30+
31+
#Required for cross-region standby
32+
compartment_id = var.compartment_id
33+
source = "CROSS_REGION_DATAGUARD"
34+
source_id = oci_database_autonomous_database.autonomous_database_cross_region_dataguard_primary.id
35+
db_name = oci_database_autonomous_database.autonomous_database_cross_region_dataguard_primary.db_name
36+
}
37+
38+
data "oci_database_autonomous_databases" "autonomous_databases" {
39+
filter {
40+
name = "id"
41+
values = [oci_database_autonomous_database.autonomous_database_cross_region_dataguard_standby.id]
42+
}
43+
44+
filter {
45+
name = "peer_db_ids"
46+
values = [oci_database_autonomous_database.autonomous_database_cross_region_dataguard_primary.id]
47+
}
48+
49+
filter {
50+
name = "role"
51+
values = ["STANDBY"]
52+
}
53+
54+
#Required
55+
compartment_id = var.compartment_id
56+
57+
#Optional
58+
display_name = oci_database_autonomous_database.autonomous_database_cross_region_dataguard_standby.display_name
59+
}
60+
61+
output "autonomous_databases" {
62+
value = data.oci_database_autonomous_databases.autonomous_databases.autonomous_databases
63+
}
64+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "tenancy_ocid" {
5+
}
6+
7+
variable "user_ocid" {
8+
}
9+
10+
variable "fingerprint" {
11+
}
12+
13+
variable "private_key_path" {
14+
}
15+
16+
variable "region" {
17+
default = "us-phoenix-1"
18+
}
19+
20+
variable "peer_region" {
21+
default = "us-ashburn-1"
22+
}
23+
24+
variable "compartment_id" {
25+
}
26+
27+
provider "oci" {
28+
region = var.region
29+
tenancy_ocid = var.tenancy_ocid
30+
user_ocid = var.user_ocid
31+
fingerprint = var.fingerprint
32+
private_key_path = var.private_key_path
33+
}
34+
35+
provider "oci" {
36+
alias = "peer_region"
37+
region = var.peer_region
38+
tenancy_ocid = var.tenancy_ocid
39+
user_ocid = var.user_ocid
40+
fingerprint = var.fingerprint
41+
private_key_path = var.private_key_path
42+
}

examples/zips/adm.zip

0 Bytes
Binary file not shown.

examples/zips/aiAnomalyDetection.zip

0 Bytes
Binary file not shown.

examples/zips/aiVision.zip

0 Bytes
Binary file not shown.

examples/zips/always_free.zip

0 Bytes
Binary file not shown.

examples/zips/analytics.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/api_gateway.zip

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)