Skip to content

Commit ac30dbd

Browse files
authored
Merge pull request #2104 from oracle/release_gh
Release gh for TFP-5.40.0
2 parents accb60c + 19ead6f commit ac30dbd

File tree

928 files changed

+16521
-2158
lines changed

Some content is hidden

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

928 files changed

+16521
-2158
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 5.40.0 (May 01, 2024)
2+
3+
### Added
4+
- Support for Database Management : Support ExaCC databases Fixed merge conflicts
5+
- Support for New Features: Network Security Group support in ZRCV cloud service
6+
- Support for Data Safe - Pre masking health check
7+
- Support for Ability to set Unified Auditing option for Create DBHome | ExaDB-D
8+
- Fixed AWS_S3 migrations bug, update resource issue with the optional atributes and documentation added
9+
OKE Workload Identity Auth support
10+
111
## 5.39.0 (April 24, 2024)
212

313
### Added

examples/database/db_systems/db_exacs/resources.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ resource "oci_database_db_home" "test_db_home_vm_cluster" {
7171
source = "VM_CLUSTER_NEW"
7272
db_version = "19.0.0.0"
7373
display_name = "createdDbHome"
74+
is_unified_auditing_enabled = "true"
7475
}
7576

7677
resource "oci_database_db_home" "test_dbrs_db_home_vm_cluster" {

examples/databasemanagement/mdb/main.tf

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,160 @@ resource "oci_database_management_managed_database" "test_managed_database" {
7979
}
8080
freeform_tags = var.managed_db_freeform_tags
8181
}
82+
83+
# External CDB
84+
variable "external_cdb_id" {
85+
default = "ocid1.externalcontainerdatabase"
86+
}
87+
variable "connector_id" {
88+
default = "ocid1.externaldatabaseconnector"
89+
}
90+
91+
resource "oci_database_management_externalcontainerdatabase_external_container_dbm_features_management" "test_externalcontainerdatabase_external_container_dbm_features_management" {
92+
feature_details {
93+
connector_details {
94+
connector_type = "EXTERNAL"
95+
database_connector_id = var.connector_id
96+
}
97+
feature = "DIAGNOSTICS_AND_MANAGEMENT"
98+
license_model = "LICENSE_INCLUDED"
99+
}
100+
external_container_database_id = var.external_cdb_id
101+
enable_external_container_dbm_feature = "true"
102+
}
103+
104+
# Uncomment PDB enable APIs only after CDB enablement is done
105+
# External PDB
106+
/*variable "external_pdb_id" {
107+
default = "ocid1.externalpluggabledatabase"
108+
}
109+
variable "pdb_connector_id" {
110+
default = "ocid1.externaldatabaseconnector"
111+
}
112+
113+
resource "oci_database_management_externalpluggabledatabase_external_pluggable_dbm_features_management" "test_externalpluggabledatabase_external_pluggable_dbm_features_management" {
114+
feature_details {
115+
connector_details {
116+
connector_type = "EXTERNAL"
117+
database_connector_id = var.pdb_connector_id
118+
}
119+
feature = "DIAGNOSTICS_AND_MANAGEMENT"
120+
}
121+
external_pluggable_database_id = var.external_pdb_id
122+
enable_external_pluggable_dbm_feature = "true"
123+
}*/
124+
125+
126+
# External Non-CDB
127+
variable "external_non_cdb_id" {
128+
default = "ocid1.externalnoncontainerdatabase"
129+
}
130+
variable "non_cdb_connector_id" {
131+
default = "ocid1.externaldatabaseconnector"
132+
}
133+
134+
resource "oci_database_management_externalnoncontainerdatabase_external_non_container_dbm_features_management" "test_externalnoncontainerdatabase_external_non_container_dbm_features_management" {
135+
feature_details {
136+
connector_details {
137+
connector_type = "EXTERNAL"
138+
database_connector_id = var.non_cdb_connector_id
139+
}
140+
feature = "DIAGNOSTICS_AND_MANAGEMENT"
141+
license_model = "LICENSE_INCLUDED"
142+
}
143+
external_non_container_database_id = var.external_non_cdb_id
144+
enable_external_non_container_dbm_feature = "true"
145+
}
146+
147+
# Cloud CDB
148+
variable "cloud_cdb_id" {
149+
default = "ocid1.database"
150+
}
151+
variable "cdb_pe_id" {
152+
default = "ocid1.dbmgmtprivateendpoint"
153+
}
154+
variable "vault_secret_id" {
155+
default = "ocid1.vaultsecret"
156+
}
157+
variable "cdb_user_role" {
158+
default = "SYSDBA"
159+
}
160+
variable "cdb_user" {
161+
default = "dbsnmp"
162+
}
163+
variable "cdb_service" {
164+
default = "cdb_service"
165+
}
166+
resource "oci_database_management_database_dbm_features_management" "test_database_dbm_features_management" {
167+
feature_details {
168+
connector_details {
169+
connector_type = "PE"
170+
private_end_point_id = var.cdb_pe_id
171+
}
172+
database_connection_details {
173+
connection_credentials {
174+
credential_type = "DETAILS"
175+
password_secret_id = var.vault_secret_id
176+
role = var.cdb_user_role
177+
user_name = var.cdb_user
178+
}
179+
connection_string {
180+
connection_type = "BASIC"
181+
port = "1521"
182+
protocol = "TCP"
183+
service = var.cdb_service
184+
}
185+
}
186+
feature = "DIAGNOSTICS_AND_MANAGEMENT"
187+
management_type = "ADVANCED"
188+
}
189+
database_id = var.cloud_cdb_id
190+
enable_database_dbm_feature = "true"
191+
}
192+
193+
# Uncomment PDB enable APIs only after CDB enablement is done
194+
# Cloud PDB
195+
/*variable "cloud_pdb_id" {
196+
default = "ocid1.pluggabledatabase"
197+
}
198+
variable "pdb_pe_id" {
199+
default = "ocid1.dbmgmtprivateendpoint"
200+
}
201+
variable "vault_secret_id" {
202+
default = "ocid1.vaultsecret"
203+
}
204+
variable "pdb_user_role" {
205+
default = "SYSDBA"
206+
}
207+
variable "pdb_user" {
208+
default = "dbsnmp"
209+
}
210+
variable "db_service" {
211+
default = "pdb_service"
212+
}
213+
resource "oci_database_management_pluggabledatabase_pluggable_database_dbm_features_management" "test_pluggabledatabase_pluggable_database_dbm_features_management" {
214+
feature_details {
215+
connector_details {
216+
connector_type = "PE"
217+
private_end_point_id = var.pdb_pe_id
218+
}
219+
database_connection_details {
220+
connection_credentials {
221+
credential_type = "DETAILS"
222+
password_secret_id = var.vault_secret_id
223+
role = var.pdb_user_role
224+
user_name = var.pdb_user
225+
}
226+
connection_string {
227+
connection_type = "BASIC"
228+
port = "1521"
229+
protocol = "TCP"
230+
service = var.db_service
231+
}
232+
}
233+
feature = "DIAGNOSTICS_AND_MANAGEMENT"
234+
management_type = "ADVANCED"
235+
}
236+
pluggable_database_id = var.cloud_pdb_id
237+
enable_pluggable_database_dbm_feature = "true"
238+
}*/

examples/databasemigration/migration/migration.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ resource "oci_database_migration_migration" "test_migration" {
263263
}
264264
data_transfer_medium_details_v2 {
265265
type = "AWS_S3"
266-
access_key_id = "abc"
266+
access_key_id = "AKIA4XMMNYWWF4PYZ3EW"
267267
object_storage_bucket {
268268
bucket = "bucket"
269269
namespace = "namespace"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "tenancy_ocid" {}
5+
variable "user_ocid" {}
6+
variable "fingerprint" {}
7+
variable "private_key_path" {}
8+
variable "region" {}
9+
variable "compartment_ocid" {}
10+
variable "data_safe_target_ocid" {}
11+
variable "masking_health_report_id" {}
12+
13+
14+
provider "oci" {
15+
tenancy_ocid = var.tenancy_ocid
16+
user_ocid = var.user_ocid
17+
fingerprint = var.fingerprint
18+
private_key_path = var.private_key_path
19+
region = var.region
20+
}
21+
22+
variable "access_level" {
23+
default = "RESTRICTED"
24+
}
25+
26+
variable "report_compartment_id_in_subtree" {
27+
default = false
28+
}
29+
data "oci_data_safe_masking_policy_health_reports" "test_health_reports" {
30+
#Required
31+
compartment_id = var.compartment_ocid
32+
33+
#Optional
34+
access_level = var.access_level
35+
compartment_id_in_subtree = var.report_compartment_id_in_subtree
36+
}
37+
data "oci_data_safe_masking_policy_health_report" "test_health_report" {
38+
#Required
39+
masking_policy_health_report_id = var.masking_health_report_id
40+
}

examples/recovery/provider.tf renamed to examples/datasafe/masking_health_report_log/masking_health_report_log.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ variable "user_ocid" {}
66
variable "fingerprint" {}
77
variable "private_key_path" {}
88
variable "region" {}
9-
variable "compartment_id" {}
10-
9+
variable "compartment_ocid" {}
10+
variable "masking_health_report_id" {}
1111

1212
provider "oci" {
1313
tenancy_ocid = var.tenancy_ocid
@@ -16,3 +16,9 @@ provider "oci" {
1616
private_key_path = var.private_key_path
1717
region = var.region
1818
}
19+
20+
21+
data "oci_data_safe_masking_policy_health_report_logs" "test_masking_policy_health_report_logs" {
22+
#Required
23+
masking_policy_health_report_id = var.masking_health_report_id
24+
}

examples/datasafe/masking_policy/masking_policy.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ resource "oci_data_safe_masking_policy" "test_masking_policy" {
8080
column_source = var.masking_policy_column_source_column_source
8181

8282
#Optional
83-
sensitive_data_model_id = oci_data_safe_sensitive_data_model.test_sensitive_data_model.id
8483
target_id = var.data_safe_target_ocid
8584
}
8685
compartment_id = var.compartment_ocid

examples/recovery/network.tf

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/recovery/protected_database.tf renamed to examples/recovery/protected_database/main.tf

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
22
// Licensed under the Mozilla Public License v2.0
33

4+
variable "tenancy_ocid" {}
5+
variable "user_ocid" {}
6+
variable "fingerprint" {}
7+
variable "private_key_path" {}
8+
variable "region" {}
9+
variable "compartment_id" {}
10+
11+
provider "oci" {
12+
tenancy_ocid = var.tenancy_ocid
13+
user_ocid = var.user_ocid
14+
fingerprint = var.fingerprint
15+
private_key_path = var.private_key_path
16+
region = var.region
17+
}
18+
419
variable "protected_database_database_size" {
520
default = "XS"
621
}
@@ -41,21 +56,28 @@ variable "protected_database_state" {
4156
default = "ACTIVE"
4257
}
4358

59+
variable "recovery_service_subnet_id" {
60+
}
61+
62+
variable "protection_policy_id" {
63+
default = "ocid1.recoveryservicepolicy.region1..aaaaaaaam22xkw32t524xvst7dbxz4qsxtwetmfnnxfsgslbq664vya5jbkq"
64+
}
4465

4566
resource "oci_recovery_protected_database" "test_protected_database" {
4667
#Required
4768
compartment_id = var.compartment_id
4869
db_unique_name = var.protected_database_db_unique_name
4970
display_name = var.protected_database_display_name
5071
password = var.protected_database_password
51-
protection_policy_id = oci_recovery_protection_policy.test_protection_policy.id
72+
protection_policy_id = var.protection_policy_id
5273
recovery_service_subnets {
5374
#Required
54-
recovery_service_subnet_id = oci_recovery_recovery_service_subnet.test_recovery_service_subnet.id
75+
recovery_service_subnet_id = var.recovery_service_subnet_id
5576
}
5677

5778
#Optional
5879
database_id = var.database_id
80+
deletion_schedule = "DELETE_AFTER_72_HOURS"
5981
database_size = var.protected_database_database_size
6082
freeform_tags = var.protected_database_freeform_tags
6183
is_redo_logs_shipped = var.protected_database_is_redo_logs_shipped
@@ -68,8 +90,16 @@ data "oci_recovery_protected_databases" "test_protected_databases" {
6890
#Optional
6991
display_name = var.protected_database_display_name
7092
id = var.protected_database_id
71-
protection_policy_id = oci_recovery_protection_policy.test_protection_policy.id
72-
recovery_service_subnet_id = oci_recovery_recovery_service_subnet.test_recovery_service_subnet.id
93+
protection_policy_id = var.protection_policy_id
94+
recovery_service_subnet_id = var.recovery_service_subnet_id
7395
state = var.protected_database_state
7496
}
7597

98+
data "oci_recovery_protected_database_fetch_configuration" "test_protected_database_fetch_configuration" {
99+
#Required
100+
protected_database_id = oci_recovery_protected_database.test_protected_database.id
101+
102+
#Optional
103+
configuration_type = "ALL"
104+
base64_encode_content = true
105+
}

examples/recovery/protected_database_fetch_configuration.tf

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)