Skip to content

Commit a5cd0fa

Browse files
authored
Merge pull request #2165 from oracle/release_gh
Releasing OCI Provider Version v.6.5.0
2 parents 7061503 + ec803d3 commit a5cd0fa

File tree

1,089 files changed

+57848
-1706
lines changed

Some content is hidden

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

1,089 files changed

+57848
-1706
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 6.5.0 (July 30, 2024)
2+
3+
### Added
4+
- Support for Instance maintenance events api
5+
- Support for Fleet Patching Service for ExaCS and ExaCC
6+
- Support for Implicit JIT and Group Membership Support in OIDC Flow
7+
-Support for OCI Cache -Lua Support on Redis 7.0.15
8+
- Support for Stack Monitoring: Baseline / Anomalies Enhancements
9+
- Support for Tunnel inspection rules in network firewall policy
10+
- Support for Data Safe - Custom Alert Policy for Audit - Examples
11+
- Support for [Expose Logical CPG ID] Terraform Support in Prod Region ADB-S: Adding an attribute to the autonomous database summary object
12+
- Support for Goldengate Suspend Phase / Parameter File Update Support
13+
### Bug Fix
14+
- Fixing tvarious CC test cases
15+
- Db_Node id setting causing an issue with backward compatability
16+
- Take shape as input for add node
17+
- Excluding basemodels in the stack in resource discovery
18+
119
## 6.4.0 (July 24, 2024)
220

321
### Added

examples/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ This directory contains Terraform configuration files showing how to create spec
9797
[![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle/terraform-provider-oci/raw/master/examples/zips/events.zip)
9898
- fast_connect
9999
[![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle/terraform-provider-oci/raw/master/examples/zips/fast_connect.zip)
100+
- fleetsoftwareupdate
101+
[![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle/terraform-provider-oci/raw/master/examples/zips/fleetsoftwareupdate.zip)
100102
- functions
101103
[![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle/terraform-provider-oci/raw/master/examples/zips/functions.zip)
102104
- fusionapps

examples/big_data_service/main.tf

Lines changed: 49 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
variable "tenancy_ocid" {
55
}
66

7+
variable "cluster_profile" {
8+
default = "HADOOP"
9+
}
10+
711
variable "user_ocid" {
812
}
913

@@ -29,8 +33,6 @@ variable "bds_instance_cluster_admin_password" {
2933
variable "kms_key_id" {
3034
}
3135

32-
variable "cluster_profile" {
33-
}
3436

3537
variable "bds_instance_cluster_public_key" {
3638
default = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpUa4zUZKyU3AkW9yoJTBDO550wpWZOXdHswfRq75gbJ2ZYlMtifvwiO3qUL/RIZSC6e1wA5OL2LQ97UaHrLLPXgjvKGVIDRHqPkzTOayjJ4ZA7NPNhcu6f/OxhKkCYF3TAQObhMJmUSMrWSUeufaRIujDz1HHqazxOgFk09fj4i2dcGnfPcm32t8a9MzlsHSmgexYCUwxGisuuWTsnMgxbqsj6DaY51l+SEPi5tf10iFmUWqziF0eKDDQ/jHkwLJ8wgBJef9FSOmwJReHcBY+NviwFTatGj7Cwtnks6CVomsFD+rAMJ9uzM8SCv5agYunx07hnEXbR9r/TXqgXGfN [email protected]"
@@ -67,7 +69,7 @@ variable "bds_instance_network_config_cidr_block" {
6769
}
6870

6971
variable "bds_instance_network_config_is_nat_gateway_required" {
70-
default = false
72+
default = true
7173
}
7274

7375
variable "bds_instance_nodes_block_volume_size_in_gbs" {
@@ -83,7 +85,7 @@ variable "bds_instance_nodes_shape" {
8385
}
8486

8587
variable "bds_instance_worker_node_shape" {
86-
default = "VM.DenseIO.E4.Flex"
88+
default = "VM.Standard.Generic"
8789
}
8890

8991
variable "bds_instance_compute_only_worker_node_shape" {
@@ -135,64 +137,6 @@ provider "oci" {
135137
region = var.region
136138
}
137139

138-
#Uncomment this when running in home region (PHX)
139-
#resource "oci_identity_tag_namespace" "tag-namespace1" {
140-
# #Required
141-
# compartment_id = var.tenancy_ocid
142-
# description = var.tag_namespace_description
143-
# name = var.tag_namespace_name
144-
#}
145-
146-
#Uncomment this when running in home region (PHX)
147-
#resource "oci_identity_tag" "tag1" {
148-
# #Required
149-
# description = "tf example tag"
150-
# name = "tf-example-tag"
151-
# tag_namespace_id = oci_identity_tag_namespace.tag-namespace1.id
152-
#}
153-
154-
resource "oci_core_vcn" "vcn_bds" {
155-
cidr_block = "111.111.0.0/16"
156-
compartment_id = var.compartment_id
157-
display_name = "BDS_VCN"
158-
dns_label = "bdsvcn"
159-
}
160-
161-
resource "oci_core_service_gateway" "export_sgw" {
162-
compartment_id = var.compartment_id
163-
display_name = "sgw"
164-
165-
services {
166-
service_id = data.oci_core_services.test_bds_services.services[0]["id"]
167-
}
168-
169-
vcn_id = oci_core_vcn.vcn_bds.id
170-
}
171-
172-
resource "oci_core_route_table" "private_rt" {
173-
compartment_id = var.compartment_id
174-
display_name = "private-rt"
175-
176-
route_rules {
177-
destination = data.oci_core_services.test_bds_services.services[0]["cidr_block"]
178-
destination_type = "SERVICE_CIDR_BLOCK"
179-
network_entity_id = oci_core_service_gateway.export_sgw.id
180-
}
181-
182-
vcn_id = oci_core_vcn.vcn_bds.id
183-
}
184-
185-
resource "oci_core_subnet" "regional_subnet_bds" {
186-
cidr_block = "111.111.0.0/24"
187-
display_name = "regionalSubnetBds"
188-
dns_label = "regionalbds"
189-
compartment_id = var.compartment_id
190-
vcn_id = oci_core_vcn.vcn_bds.id
191-
security_list_ids = [oci_core_vcn.vcn_bds.default_security_list_id]
192-
route_table_id = oci_core_vcn.vcn_bds.default_route_table_id
193-
dhcp_options_id = oci_core_vcn.vcn_bds.default_dhcp_options_id
194-
}
195-
196140
resource "oci_bds_bds_instance" "test_bds_instance" {
197141
#Required
198142
cluster_admin_password = var.bds_instance_cluster_admin_password
@@ -204,72 +148,73 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
204148
is_secure = var.bds_instance_is_secure
205149
kms_key_id = var.kms_key_id
206150
cluster_profile = var.cluster_profile
207-
bootstrap_script_url = "https://objectstorage.us-ashburn-1.oraclecloud.com/p/1hWiiE-2GVzGiKhaBX1zyXVa_jTIu_cU5kDdKTyYS74Wk5xmEA2WKht9NTA2y935/n/oraclebigdatadb/b/bootstrap-script-sdk-test/o/bootstrapScriptTemplate1bootstrapScript1.sh"
151+
bootstrap_script_url = "https://objectstorage.us-ashburn-1.oraclecloud.com/p/Lk5JT9tnUIOG4yLm6S21QVR7m3Rm2uj1RAS2Olx5v14onLU2Y-b0lIc_N0RuUIge/n/idpbwtq1b3ta/b/bucket-20230214-1316/o/execute_bootstrap_script.sh"
208152

209153
master_node {
210154
#Required
211-
shape = var.bds_instance_nodes_shape
155+
shape = "VM.Standard.E4.Flex"
212156

213157
subnet_id = var.subnet_id
214158
block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
215159
number_of_nodes = 1
160+
shape_config {
161+
memory_in_gbs = 120
162+
ocpus = 8
163+
}
216164
}
217165

218166
util_node {
219167
#Required
220-
shape = var.bds_instance_nodes_shape
168+
shape = "VM.Standard.E4.Flex"
221169

222170
subnet_id = var.subnet_id
223171
block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
224172
number_of_nodes = 1
173+
shape_config {
174+
memory_in_gbs = 120
175+
ocpus = 8
176+
}
225177
}
226178

227179
worker_node {
228180
#Required
229181
shape = var.bds_instance_worker_node_shape
230-
231-
subnet_id = var.subnet_id
232-
number_of_nodes = 4
233-
shape_config {
234-
memory_in_gbs = 128
235-
ocpus = 8
236-
nvmes = 1
237-
}
238-
}
239-
240-
edge_node {
241-
#Required
242-
shape = var.bds_instance_edge_node_shape
243-
244-
subnet_id = var.subnet_id
245-
block_volume_size_in_gbs = var.bds_instance_worker_nodes_block_volume_size_in_gbs
246-
number_of_nodes = 1
247-
shape_config {
248-
memory_in_gbs = var.bds_instance_edge_memory_per_node
249-
ocpus = var.bds_instance_edge_ocpu_per_node
250-
}
251-
}
252-
253-
compute_only_worker_node {
254-
#Required
255-
shape = var.bds_instance_compute_only_worker_node_shape
256-
182+
block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
257183
subnet_id = var.subnet_id
258-
block_volume_size_in_gbs = var.bds_instance_worker_nodes_block_volume_size_in_gbs
259-
number_of_nodes = 1
260-
shape_config {
261-
memory_in_gbs = var.bds_instance_compute_only_worker_memory_per_node
262-
ocpus = var.bds_instance_compute_only_worker_ocpu_per_node
184+
number_of_nodes = 3
185+
shape_config {
186+
memory_in_gbs = 120
187+
ocpus = 8
188+
}
189+
}
190+
191+
edge_node {
192+
#Required
193+
shape = var.bds_instance_edge_node_shape
194+
195+
subnet_id = var.subnet_id
196+
block_volume_size_in_gbs = var.bds_instance_worker_nodes_block_volume_size_in_gbs
197+
number_of_nodes = 1
198+
shape_config {
199+
memory_in_gbs = var.bds_instance_edge_memory_per_node
200+
ocpus = var.bds_instance_edge_ocpu_per_node
201+
}
202+
}
203+
204+
compute_only_worker_node {
205+
#Required
206+
shape = var.bds_instance_compute_only_worker_node_shape
207+
208+
subnet_id = var.subnet_id
209+
block_volume_size_in_gbs = var.bds_instance_worker_nodes_block_volume_size_in_gbs
210+
number_of_nodes = 1
211+
shape_config {
212+
memory_in_gbs = var.bds_instance_compute_only_worker_memory_per_node
213+
ocpus = var.bds_instance_compute_only_worker_ocpu_per_node
263214
}
264215
}
265216

266-
267-
268-
269-
# cloud_sql_details {
270-
# shape = "VM.Standard2.4"
271-
# block_volume_size_in_gbs = 1000
272-
# }
217+
ignore_existing_nodes_shape = ["worker", "master", "utility"]
273218

274219
is_cloud_sql_configured = false
275220

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
# Need to have this block even though it's empty; for import testing
3+
provider "oci" {
4+
}
5+
6+
variable "tenancy_ocid" {
7+
}
8+
9+
variable "compartment_id" {
10+
}
11+
12+
variable "instance_id" {
13+
}
14+
15+
variable "instance_maintenance_event_id" {
16+
}
17+
18+
variable "ssh_public_key" {
19+
}
20+
21+
variable "region" {
22+
default = "us-ashburn-1"
23+
}
24+
25+
26+
data "oci_core_instance_maintenance_events" "test_instance_maintenance_event" {
27+
compartment_id = var.compartment_id
28+
filter {
29+
name = "id"
30+
values = [oci_core_instance_maintenance_event.test_instance_maintenance_event.id]
31+
}
32+
instance_action = "REBOOT_MIGRATION"
33+
instance_id = var.instance_id
34+
state = "SCHEDULED"
35+
}
36+
37+
// Gets a list of all Oracle Linux 7.5 images that support a given Instance shape
38+
data "oci_core_images" "supported_shape_images" {
39+
compartment_id = var.tenancy_ocid
40+
shape = "VM.Standard2.1"
41+
operating_system = "Oracle Linux"
42+
}
43+
44+
45+
resource "oci_core_instance_maintenance_event" "test_instance_maintenance_event" {
46+
can_delete_local_storage = "true"
47+
display_name = "displayName2"
48+
freeform_tags = {
49+
"Department" = "Accounting"
50+
}
51+
instance_maintenance_event_id = var.instance_maintenance_event_id
52+
time_window_start = "2025-01-12T15:04:05Z"
53+
}

examples/database/adb/autonomous_database.tf

Lines changed: 44 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,48 @@ resource "oci_database_autonomous_database" "test_autonomous_database_db_tools"
166166
license_model = "LICENSE_INCLUDED"
167167
is_free_tier = "false"
168168
db_tools_details {
169-
#Required
170-
name = "ORDS"
171-
172-
#Optional
173-
is_enabled = true
174-
}
175-
}
169+
name = "APEX"
170+
is_enabled = true
171+
compute_count = 0
172+
max_idle_time_in_minutes = 0
173+
}
174+
db_tools_details {
175+
name = "DATA_TRANSFORMS"
176+
is_enabled = true
177+
compute_count = 0
178+
max_idle_time_in_minutes = 0
179+
}
180+
db_tools_details {
181+
name = "DATABASE_ACTIONS"
182+
is_enabled = true
183+
compute_count = 0
184+
max_idle_time_in_minutes = 0
185+
}
186+
db_tools_details {
187+
name = "GRAPH_STUDIO"
188+
is_enabled = false
189+
compute_count = 0
190+
max_idle_time_in_minutes = 0
191+
}
192+
db_tools_details {
193+
name = "MONGODB_API"
194+
is_enabled = true
195+
compute_count = 0
196+
max_idle_time_in_minutes = 0
197+
}
198+
db_tools_details {
199+
name = "OML"
200+
is_enabled = true
201+
compute_count = 0
202+
max_idle_time_in_minutes = 0
203+
}
204+
db_tools_details {
205+
name = "ORDS"
206+
is_enabled = true
207+
compute_count = 0
208+
max_idle_time_in_minutes = 0
209+
}
210+
}
176211

177212
resource "oci_database_autonomous_database" "test_autonomous_database_actions" {
178213
admin_password = random_string.autonomous_database_admin_password.result
@@ -187,11 +222,6 @@ resource "oci_database_autonomous_database" "test_autonomous_database_actions" {
187222
state = "STOPPED"
188223
}
189224

190-
resource "oci_database_autonomous_database_backup" "autonomous_database_backup" {
191-
#Required
192-
autonomous_database_id = oci_database_autonomous_database.autonomous_database.id
193-
display_name = var.autonomous_database_backup_display_name
194-
}
195225

196226
resource "oci_database_autonomous_database" "autonomous_database_oneway_tls_connection" {
197227
admin_password = random_string.autonomous_database_admin_password.result
@@ -243,6 +273,7 @@ resource "oci_database_autonomous_database" "autonomous_database_from_backup_tim
243273
}
244274
*/
245275

276+
/*
246277
resource "oci_database_autonomous_database" "autonomous_database_from_backup_latest" {
247278
#Required
248279
admin_password = random_string.autonomous_database_admin_password.result
@@ -257,7 +288,7 @@ resource "oci_database_autonomous_database" "autonomous_database_from_backup_lat
257288
use_latest_available_backup_time_stamp = "true"
258289
whitelisted_ips = ["1.1.1.1/28"]
259290
}
260-
291+
*/
261292
resource "oci_core_vcn" "test_vcn" {
262293
cidr_block = "10.0.0.0/16"
263294
compartment_id = var.compartment_ocid

0 commit comments

Comments
 (0)