Skip to content

Commit a97550c

Browse files
authored
Merge pull request #1921 from oracle/release_gh
Releasing OCI Provider v5.5.0
2 parents 6078a44 + 08f7d8c commit a97550c

File tree

397 files changed

+14664
-1885
lines changed

Some content is hidden

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

397 files changed

+14664
-1885
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
## 5.5.0 (Unreleased)
2+
3+
### Added
4+
- Support for Remove internal-only additionalCapabilities parameter from Container Instances Public SDK/CLI and Terraform
5+
- Support for Architecture Agnostic Instance Launch for Customer Overlay Services
6+
- Support for FSS: Support Kerberos with NFSv3 in FSS
7+
- Support for Include capacity reservation checks
8+
- Setting resource ID in statefile before waiting for workrequest for sub-resources
9+
- Support for Multitenant support for Workload Identity (WRIS)
10+
- Support for KMS key Rotation for Block/Boot Volume Backups
11+
- Support for 3rd VM Cluster Network for DR (Data Guard) | Exa-DB-C@C (ExaCC)
12+
- Support for Upgrade - Personal to Corporate
13+
- Support for APM - Synthetics - Disable automatic screenshots - API Only
14+
- Support migration without SSH to DB Host.
15+
- Support for Patch One-Off Download Support DBCS-EXaCS-ExaCC Update
16+
- Support for MFT monitoring in Stack Monitoring
17+
### Bug Fix
18+
- updated document for content field of vault oci_vault_secret
19+
- Adding checks for ocpu_count and storage_size_in_gbs
20+
- Adding rack_serial_number in database_exadata_infrastructure_resource.go
21+
- Resolved Resource Discovery issue for Terraform Version Greater than 1.3
22+
123
## 5.4.0 (July 12, 2023)
224

325
### Added

examples/compute/instance/instance.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ variable "instance_ocpus" {
6060
default = 1
6161
}
6262

63+
variable "instance_vcpus" {
64+
default = 2
65+
}
66+
6367
variable "instance_shape_config_memory_in_gbs" {
6468
default = 1
6569
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
5+
resource "oci_core_instance_configuration" "test_instance_configuration" {
6+
compartment_id = var.compartment_ocid
7+
display_name = "TestInstanceConfiguration"
8+
9+
instance_details {
10+
instance_type = "instance_options"
11+
12+
options {
13+
launch_details {
14+
compartment_id = var.compartment_ocid
15+
shape = var.instance_shape
16+
17+
shape_config {
18+
vcpus = var.instance_vcpus
19+
memory_in_gbs = var.instance_shape_config_memory_in_gbs
20+
}
21+
22+
source_details {
23+
source_type = "image"
24+
25+
instance_source_image_filter_details {
26+
compartment_id = var.compartment_ocid
27+
operating_system = "Oracle Linux"
28+
}
29+
}
30+
31+
create_vnic_details {
32+
subnet_id = oci_core_subnet.test_subnet.id
33+
display_name = "TFExampleInstanceConfigurationVNIC"
34+
assign_public_ip = true
35+
skip_source_dest_check = false
36+
}
37+
}
38+
}
39+
}
40+
}
41+
42+
resource "oci_core_instance" "test_instance_configuration_instance" {
43+
availability_domain = data.oci_identity_availability_domain.ad.name
44+
compartment_id = var.compartment_ocid
45+
display_name = "TestInstanceConfigurationInstance"
46+
instance_configuration_id = oci_core_instance_configuration.test_instance_configuration.id
47+
48+
create_vnic_details {
49+
subnet_id = oci_core_subnet.test_subnet.id
50+
display_name = "Primaryvnic"
51+
assign_public_ip = true
52+
}
53+
54+
metadata = {
55+
ssh_authorized_keys = var.ssh_public_key
56+
user_data = base64encode(file("./userdata/bootstrap"))
57+
}
58+
defined_tags = {
59+
"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag2.name}" = "awesome-app-server"
60+
}
61+
62+
freeform_tags = {
63+
"freeformkey" = "freeformvalue"
64+
}
65+
66+
timeouts {
67+
create = "60m"
68+
}
69+
}

examples/container_instances/main.tf

Lines changed: 41 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ resource "oci_core_network_security_group" "test_network_security_group" {
2626
vcn_id = oci_core_vcn.test_vcn.id
2727
lifecycle {
2828
ignore_changes = [
29-
"defined_tags"]
29+
"defined_tags"]
3030
}
3131
}
3232

@@ -36,31 +36,31 @@ resource "oci_core_vcn" "test_vcn" {
3636
dns_label = "testvcn"
3737
lifecycle {
3838
ignore_changes = [
39-
"defined_tags"]
39+
"defined_tags"]
4040
}
4141
}
4242

4343
resource "oci_core_subnet" "test_subnet" {
44-
cidr_block = "10.0.0.0/24"
45-
compartment_id = var.compartment_ocid
46-
dns_label = "testsubnet"
47-
route_table_id = oci_core_route_table.test_route_table.id
44+
cidr_block = "10.0.0.0/24"
45+
compartment_id = var.compartment_ocid
46+
dns_label = "testsubnet"
47+
route_table_id = oci_core_route_table.test_route_table.id
4848
security_list_ids = [
49-
"${oci_core_security_list.test_sec_list.id}"]
50-
vcn_id = oci_core_vcn.test_vcn.id
49+
"${oci_core_security_list.test_sec_list.id}"]
50+
vcn_id = oci_core_vcn.test_vcn.id
5151
lifecycle {
5252
ignore_changes = [
53-
"defined_tags"]
53+
"defined_tags"]
5454
}
5555
}
5656

5757
resource "oci_core_security_list" "test_sec_list" {
5858
compartment_id = var.compartment_ocid
5959
vcn_id = oci_core_vcn.test_vcn.id
6060
egress_security_rules {
61-
destination = "0.0.0.0/0"
62-
protocol = "all"
63-
stateless = "false"
61+
destination = "0.0.0.0/0"
62+
protocol = "all"
63+
stateless = "false"
6464
}
6565

6666
ingress_security_rules {
@@ -118,55 +118,43 @@ data "oci_identity_availability_domains" "test_availability_domains" {
118118
compartment_id = var.tenancy_ocid
119119
}
120120

121-
resource "oci_identity_tag_namespace" "tag-namespace1" {
122-
#Required
123-
compartment_id = var.tenancy_ocid
124-
description = "example tag namespace"
125-
name = var.defined_tag_namespace_name != "" ? var.defined_tag_namespace_name : "example-tag-namespace-all"
121+
resource "time_sleep" "wait_90_seconds" {
122+
depends_on = [oci_core_subnet.test_subnet, oci_core_internet_gateway.test_ig]
126123

127-
is_retired = false
128-
}
129-
130-
resource "oci_identity_tag" "tag1" {
131-
#Required
132-
description = "example tag"
133-
name = "example-tag"
134-
tag_namespace_id = oci_identity_tag_namespace.tag-namespace1.id
135-
136-
is_retired = false
124+
create_duration = "90s"
137125
}
138126

139127
resource "oci_container_instances_container_instance" "test_container_instance" {
128+
depends_on = [time_sleep.wait_90_seconds]
129+
140130
#Required
141-
availability_domain = data.oci_identity_availability_domains.test_availability_domains.availability_domains.2.name
142-
compartment_id = var.compartment_ocid
131+
availability_domain = data.oci_identity_availability_domains.test_availability_domains.availability_domains.2.name
132+
compartment_id = var.compartment_ocid
143133
containers {
144134
#Required
145-
image_url = "busybox"
135+
image_url = "busybox"
146136

147137
#Optional
148-
additional_capabilities = [
149-
"CAP_NET_ADMIN"]
150138
arguments = [
151139
"-c",
152-
"sleep 24h"]
140+
"sleep 24h"]
153141
command = [
154-
"/bin/sh"]
142+
"/bin/sh"]
155143
display_name = "displayName"
156144
environment_variables = {
157145
"environment" = "variable"
158146
}
159147
health_checks {
160148
#Required
161-
health_check_type = "HTTP"
149+
health_check_type = "HTTP"
162150

163151
#Optional
164-
failure_action = "KILL"
165-
failure_threshold = "10"
152+
failure_action = "KILL"
153+
failure_threshold = "10"
166154
headers {
167155

168156
#Optional
169-
name = "name"
157+
name = "name"
170158
value = "value"
171159
}
172160
initial_delay_in_seconds = "10"
@@ -186,8 +174,8 @@ resource "oci_container_instances_container_instance" "test_container_instance"
186174
}
187175
volume_mounts {
188176
#Required
189-
mount_path = "/mnt"
190-
volume_name = "volumeName"
177+
mount_path = "/mnt"
178+
volume_name = "volumeName"
191179

192180
#Optional
193181
is_read_only = "false"
@@ -206,44 +194,43 @@ resource "oci_container_instances_container_instance" "test_container_instance"
206194
subnet_id = oci_core_subnet.test_subnet.id
207195

208196
#Optional
209-
defined_tags = map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")
197+
defined_tags = map("tf_test_namespace.test_tag", "value")
210198
display_name = "displayName"
211199
freeform_tags = {
212200
"freeformTag" = "freeformTags"
213201
}
214-
hostname_label = "hostnamelabel"
215-
is_public_ip_assigned = "true"
216-
nsg_ids = []
217-
private_ip = "10.0.0.7"
202+
hostname_label = "hostnamelabel"
203+
is_public_ip_assigned = "true"
204+
nsg_ids = []
205+
private_ip = "10.0.0.7"
218206
skip_source_dest_check = "false"
219207
}
220208

221209
#Optional
222210
container_restart_policy = "ALWAYS"
223-
defined_tags = map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")
224-
display_name = "displayName"
211+
defined_tags = map("tf_test_namespace.test_tag", "value")
212+
display_name = "displayName"
225213
dns_config {
226214

227215
#Optional
228216
nameservers = [
229-
"8.8.8.8"]
217+
"8.8.8.8"]
230218
options = [
231-
"options"]
219+
"options"]
232220
searches = [
233-
"search domain"]
221+
"search domain"]
234222
}
235223
freeform_tags = {
236224
"bar-key" = "foo-value"
237225
}
238226
graceful_shutdown_timeout_in_seconds = "10"
239227
lifecycle {
240-
ignore_changes = [
241-
"defined_tags"]
228+
ignore_changes = ["defined_tags", "vnics[0].defined_tags"]
242229
}
243-
state = "ACTIVE"
230+
state = "ACTIVE"
244231
volumes {
245232
#Required
246-
name = "volumeName"
233+
name = "volumeName"
247234
volume_type = "EMPTYDIR"
248235

249236
#Optional

examples/database/atp-d/exadata.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ resource "oci_database_cloud_autonomous_vm_cluster" "test_cloud_autonomous_vm_cl
8181
lifecycle {
8282
ignore_changes = [
8383
autonomous_data_storage_size_in_tbs,
84+
db_servers,
8485
]
8586
}
8687
}

examples/database/atp-d/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ resource "oci_database_autonomous_container_database" "test_autonomous_container
1515
display_name = "example-container-database"
1616
patch_model = "RELEASE_UPDATES"
1717
db_version = "19.18.0.1.0"
18-
db_name = "acdname"
18+
db_name = "ACDNAME"
1919

2020
#Optional
2121
backup_config {
@@ -56,7 +56,6 @@ resource "oci_database_autonomous_container_database" "test_autonomous_container
5656
}
5757
rotate_key_trigger = "true"
5858
version_preference = "LATEST_RELEASE_UPDATE"
59-
db_version = "19.18.0.1.0"
6059
}
6160

6261
variable "cloud_exadata_infrastructure_un_allocated_resource_db_servers" {

examples/disaster_recovery/dr_plan/dr_plan.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ resource "oci_disaster_recovery_dr_plan" "test_dr_plan" {
5050
dr_protection_group_id = oci_disaster_recovery_dr_protection_group.test_dr_protection_group.id
5151
type = var.dr_plan_type
5252

53+
lifecycle {
54+
ignore_changes = [defined_tags]
55+
}
56+
5357
#Optional
5458
defined_tags = map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "${var.dr_plan_defined_tags_value}")
5559
freeform_tags = var.dr_plan_freeform_tags

examples/disaster_recovery/dr_plan/dr_protection_group.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ resource "oci_disaster_recovery_dr_protection_group" "test_dr_protection_group"
8181
peer_id = oci_disaster_recovery_dr_protection_group.test_peer.id
8282
peer_region = var.dr_protection_group_association_peer_region
8383
}
84+
85+
lifecycle {
86+
ignore_changes = [defined_tags]
87+
}
88+
8489
defined_tags = map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "${var.dr_protection_group_defined_tags_value}")
8590
freeform_tags = var.dr_protection_group_freeform_tags
8691
}

examples/disaster_recovery/dr_plan/tag_namespace.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ resource "oci_identity_tag_namespace" "test_tag_namespace" {
5151
description = var.tag_namespace_description
5252
name = var.tag_namespace_name
5353

54+
lifecycle {
55+
ignore_changes = [defined_tags]
56+
}
57+
5458
#Optional
5559
defined_tags = map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "${var.tag_namespace_defined_tags_value}")
5660
freeform_tags = var.tag_namespace_freeform_tags

examples/disaster_recovery/dr_plan/volume_group.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ resource "oci_core_volume_group" "test_volume_group" {
5858
volume_ids = oci_core_volume.source_volume_list.*.id
5959
}
6060

61+
lifecycle {
62+
ignore_changes = [defined_tags]
63+
}
64+
6165
#Optional
6266
defined_tags = map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "${var.volume_group_defined_tags_value}")
6367
display_name = var.volume_group_display_name
6468
freeform_tags = var.volume_group_freeform_tags
6569
volume_group_replicas {
6670
#Required
67-
availability_domain = data.oci_identity_availability_domains.test_availability_domains.availability_domains.0.name
71+
availability_domain = data.oci_identity_availability_domains.test_availability_domains.availability_domains.1.name
6872

6973
#Optional
7074
display_name = var.volume_group_volume_group_replicas_display_name

examples/disaster_recovery/dr_plan_execution/dr_plan.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ resource "oci_disaster_recovery_dr_plan" "test_dr_plan" {
3131
dr_protection_group_id = oci_disaster_recovery_dr_protection_group.test_dr_protection_group.id
3232
type = var.dr_plan_type
3333

34+
lifecycle {
35+
ignore_changes = [defined_tags]
36+
}
37+
3438
#Optional
3539
defined_tags = map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "${var.dr_plan_defined_tags_value}")
3640
freeform_tags = var.dr_plan_freeform_tags

examples/disaster_recovery/dr_plan_execution/dr_plan_execution.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ resource "oci_disaster_recovery_dr_plan_execution" "test_dr_plan_execution" {
6464
}
6565
plan_id = oci_disaster_recovery_dr_plan.test_dr_plan.id
6666

67+
lifecycle {
68+
ignore_changes = [defined_tags]
69+
}
70+
6771
#Optional
6872
defined_tags = map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "${var.dr_plan_execution_defined_tags_value}")
6973
display_name = var.dr_plan_execution_display_name

0 commit comments

Comments
 (0)