Skip to content

Commit f54b581

Browse files
authored
Merge pull request #2199 from oracle/release_gh
Releasing OCI Provider Version v6.11.0
2 parents 70cfbcc + 2a9e039 commit f54b581

File tree

616 files changed

+59335
-1336
lines changed

Some content is hidden

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

616 files changed

+59335
-1336
lines changed

CHANGELOG.md

Lines changed: 123 additions & 66 deletions
Large diffs are not rendered by default.

examples/big_data_service/main.tf

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ variable "tenancy_ocid" {
55
}
66

77
variable "cluster_profile" {
8-
default = "HADOOP"
8+
default = "HADOOP"
99
}
1010

1111
variable "user_ocid" {
@@ -85,7 +85,7 @@ variable "bds_instance_nodes_shape" {
8585
}
8686

8787
variable "bds_instance_worker_node_shape" {
88-
default = "VM.Standard.Generic"
88+
default = "VM.DenseIO.E5.Flex"
8989
}
9090

9191
variable "bds_instance_compute_only_worker_node_shape" {
@@ -148,7 +148,7 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
148148
is_secure = var.bds_instance_is_secure
149149
kms_key_id = var.kms_key_id
150150
cluster_profile = var.cluster_profile
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"
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"
152152

153153
master_node {
154154
#Required
@@ -158,9 +158,9 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
158158
block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
159159
number_of_nodes = 1
160160
shape_config {
161-
memory_in_gbs = 120
162-
ocpus = 8
163-
}
161+
memory_in_gbs = 120
162+
ocpus = 8
163+
}
164164
}
165165

166166
util_node {
@@ -171,50 +171,50 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
171171
block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
172172
number_of_nodes = 1
173173
shape_config {
174-
memory_in_gbs = 120
175-
ocpus = 8
176-
}
174+
memory_in_gbs = 120
175+
ocpus = 8
176+
}
177177
}
178178

179179
worker_node {
180180
#Required
181181
shape = var.bds_instance_worker_node_shape
182-
block_volume_size_in_gbs = var.bds_instance_nodes_block_volume_size_in_gbs
182+
subnet_id = var.subnet_id
183+
number_of_nodes = 3
184+
shape_config {
185+
memory_in_gbs = 120
186+
ocpus = 8
187+
nvmes = 1
188+
}
189+
}
190+
191+
edge_node {
192+
#Required
193+
shape = var.bds_instance_edge_node_shape
194+
183195
subnet_id = var.subnet_id
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
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
214201
}
215202
}
216203

217-
ignore_existing_nodes_shape = ["worker", "master", "utility"]
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
214+
}
215+
}
216+
217+
ignore_existing_nodes_shape = ["worker", "master", "utility"]
218218

219219
is_cloud_sql_configured = false
220220

@@ -224,7 +224,7 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
224224

225225
#Uncomment kafka_broker_node block for use of Kafka cluster
226226
#kafka_broker_node {
227-
#Required
227+
#Required
228228
# shape = var.bds_instance_compute_only_worker_node_shape
229229

230230
# subnet_id = var.subnet_id
@@ -237,10 +237,10 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
237237
#}
238238

239239
#Optional
240-
#Uncomment this when running in home region (PHX)
241-
# defined_tags = {
242-
# "${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = var.bds_instance_defined_tags_value
243-
# }
240+
#Uncomment this when running in home region (PHX)
241+
# defined_tags = {
242+
# "${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = var.bds_instance_defined_tags_value
243+
# }
244244
freeform_tags = var.bds_instance_freeform_tags
245245
network_config {
246246
#Optional
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
resource "oci_database_autonomous_database" "undelete_autonomous_database" {
2+
compartment_id = var.compartment_id
3+
db_name = var.undelete_db_name
4+
source = "UNDELETE_ADB"
5+
source_id = var.source_id
6+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
5+
provider "oci" {
6+
tenancy_ocid = var.tenancy_ocid
7+
user_ocid = var.user_ocid
8+
fingerprint = var.fingerprint
9+
private_key_path = var.private_key_path
10+
region = var.region
11+
}

examples/databasemigration/migration_mysql/migration_mysql_rds.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ resource "oci_database_migration_connection" "test_connection_mysql_rds_source"
3838
password = "BEstrO0ng_#11"
3939
technology_type = "AMAZON_RDS_MYSQL"
4040
username = "ggfe"
41-
database_id = var.database_mysql_id
4241
database_name = "ggfe"
4342
host = "254.249.0.0"
4443
port = "3306"

examples/datasafe/firewall_allowed_sql/firewall_allowed_sql.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ variable "fingerprint" {}
77
variable "private_key_path" {}
88
variable "region" {}
99
variable "compartment_ocid" {}
10+
variable "sql_firewall_allowed_sql_ocid" {}
1011

1112
variable "allowed_sql_sort_by" {
1213
default = "timeCollected"
@@ -37,3 +38,8 @@ data "oci_data_safe_sql_firewall_allowed_sqls" "test_sql_firewall_allowed_sqls"
3738
access_level = var.access_level
3839
}
3940

41+
data "oci_data_safe_sql_firewall_allowed_sql" "test_sql_firewall_allowed_sql" {
42+
#Required
43+
sql_firewall_allowed_sql_id = var.sql_firewall_allowed_sql_ocid
44+
}
45+

examples/datasafe/report_definition/report_definition.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ variable "report_definition_column_filters_expressions" {
2222
}
2323

2424
variable "report_definition_column_filters_field_name" {
25-
default = "targetName"
25+
default = "targetId"
2626
}
2727

2828
variable "report_definition_column_filters_is_enabled" {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Overview
2+
This is a Terraform configuration that creates the Fleet Apps Management service on Oracle Cloud Infrastructure.
3+
4+
The Terraform code is used to create a Resource Manager stack, that creates the required resources and configures the application on the created resources.
Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
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_id" {}
10+
11+
variable "fleet_application_type" {
12+
default = "applicationType"
13+
}
14+
15+
variable "fleet_description" {
16+
default = "fleet description"
17+
}
18+
19+
variable "fleet_display_name" {
20+
default = "fleetDisplayName"
21+
}
22+
23+
variable "fleet_environment_type" {
24+
default = "environmentType"
25+
}
26+
27+
variable "fleet_fleet_type" {
28+
default = "GENERIC"
29+
}
30+
31+
variable "fleet_freeform_tags" {
32+
default = { "bar-key" = "value" }
33+
}
34+
35+
variable "fleet_group_type" {
36+
default = "ENVIRONMENT"
37+
}
38+
39+
variable "fleet_is_target_auto_confirm" {
40+
default = true
41+
}
42+
43+
variable "fleet_notification_preferences_preferences_on_job_failure" {
44+
default = false
45+
}
46+
47+
variable "fleet_notification_preferences_preferences_on_topology_modification" {
48+
default = false
49+
}
50+
51+
variable "fleet_notification_preferences_preferences_on_upcoming_schedule" {
52+
default = false
53+
}
54+
55+
variable "fleet_product" {
56+
default = "OS(COMPUTE)"
57+
}
58+
59+
variable "fleet_products" {
60+
default = ["OS(COMPUTE)"]
61+
}
62+
63+
variable "fleet_resource_selection_type" {
64+
default = "MANUAL"
65+
}
66+
67+
variable "fleet_rule_selection_criteria_match_condition" {
68+
default = "MATCH_ALL"
69+
}
70+
71+
variable "fleet_rule_selection_criteria_rules_basis" {
72+
default = "basis"
73+
}
74+
75+
variable "fleet_rule_selection_criteria_rules_conditions_attr_group" {
76+
default = "attrGroup"
77+
}
78+
79+
variable "fleet_rule_selection_criteria_rules_conditions_attr_key" {
80+
default = "attrKey"
81+
}
82+
83+
variable "fleet_rule_selection_criteria_rules_conditions_attr_value" {
84+
default = "attrValue"
85+
}
86+
87+
variable "fleet_state" {
88+
default = "NEEDS_ATTENTION"
89+
}
90+
91+
92+
93+
provider "oci" {
94+
tenancy_ocid = var.tenancy_ocid
95+
user_ocid = var.user_ocid
96+
fingerprint = var.fingerprint
97+
private_key_path = var.private_key_path
98+
region = var.region
99+
}
100+
101+
######## Supporting resources used with Fleet.
102+
103+
# Topic creation
104+
resource "random_string" "topicname" {
105+
length = 10
106+
special = false
107+
}
108+
109+
resource "oci_ons_notification_topic" "test_notification_topic" {
110+
#Required
111+
compartment_id = var.compartment_id
112+
name = random_string.topicname.result
113+
}
114+
115+
########
116+
117+
resource "oci_fleet_apps_management_fleet" "test_fleet" {
118+
#Required
119+
compartment_id = var.tenancy_ocid
120+
fleet_type = var.fleet_fleet_type
121+
122+
lifecycle {
123+
ignore_changes = ["defined_tags"]
124+
}
125+
126+
#Optional
127+
application_type = var.fleet_application_type
128+
description = var.fleet_description
129+
display_name = var.fleet_display_name
130+
environment_type = var.fleet_environment_type
131+
freeform_tags = var.fleet_freeform_tags
132+
group_type = var.fleet_group_type
133+
is_target_auto_confirm = var.fleet_is_target_auto_confirm
134+
notification_preferences {
135+
#Required
136+
compartment_id = var.compartment_id
137+
topic_id = oci_ons_notification_topic.test_notification_topic.id
138+
139+
#Optional
140+
preferences {
141+
142+
#Optional
143+
on_job_failure = var.fleet_notification_preferences_preferences_on_job_failure
144+
on_topology_modification = var.fleet_notification_preferences_preferences_on_topology_modification
145+
on_upcoming_schedule = var.fleet_notification_preferences_preferences_on_upcoming_schedule
146+
}
147+
}
148+
products = var.fleet_products
149+
resource_selection_type = var.fleet_resource_selection_type
150+
rule_selection_criteria {
151+
#Required
152+
match_condition = var.fleet_rule_selection_criteria_match_condition
153+
rules {
154+
#Required
155+
compartment_id = var.tenancy_ocid
156+
conditions {
157+
#Required
158+
attr_group = var.fleet_rule_selection_criteria_rules_conditions_attr_group
159+
attr_key = var.fleet_rule_selection_criteria_rules_conditions_attr_key
160+
attr_value = var.fleet_rule_selection_criteria_rules_conditions_attr_value
161+
}
162+
resource_compartment_id = var.compartment_id
163+
#Optional
164+
basis = var.fleet_rule_selection_criteria_rules_basis
165+
}
166+
}
167+
}
168+
169+
data "oci_fleet_apps_management_fleets" "test_fleets" {
170+
171+
#Optional
172+
application_type = var.fleet_application_type
173+
compartment_id = var.tenancy_ocid
174+
display_name = var.fleet_display_name
175+
environment_type = var.fleet_environment_type
176+
fleet_type = var.fleet_fleet_type
177+
product = var.fleet_product
178+
state = var.fleet_state
179+
}
180+

0 commit comments

Comments
 (0)