Skip to content

Commit f91f5a6

Browse files
authored
Merge pull request #1814 from oracle/release_gh
Releasing version 4.113.0
2 parents 8f52dbd + 54c1a3b commit f91f5a6

File tree

429 files changed

+18403
-2917
lines changed

Some content is hidden

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

429 files changed

+18403
-2917
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 4.113.0 (March 22, 2023)
2+
3+
### Added
4+
- Support for GoldenGate Additional Connection Types R3
5+
- Support for Custom shapes for the build runner
6+
- Support for ADB-S: Cheaper Autonomous Data Guard
7+
- Support for Pre Built Functions
8+
- Support for ADB on ExaCC | Long Term Backup Retention
9+
- Support for ExaCS | DBRS integration
10+
### Bug Fix
11+
- Set compartment_id for oci_artifacts_container_configuration to fix state file inconsistency
12+
- Test enabling resource discovery for core resources: oci_core_compute_capacity_reservation
13+
- Edit Volume ID inside a VolumeGroup results the VG gets destoried
14+
- Resource Discovery failing for DNS service with oci_dns_rrset resource
15+
116
## 4.112.0 (March 15, 2023)
217

318
### Added

examples/database/db_systems/db_exacs/resources.tf

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,37 @@ resource "oci_database_db_home" "test_db_home_vm_cluster" {
6767
display_name = "createdDbHome"
6868
}
6969

70+
resource "oci_database_db_home" "test_dbrs_db_home_vm_cluster" {
71+
vm_cluster_id = oci_database_cloud_vm_cluster.test_cloud_vm_cluster.id
72+
73+
database {
74+
admin_password = "BEstrO0ng_#11"
75+
db_name = "dbrsDb"
76+
character_set = "AL32UTF8"
77+
ncharacter_set = "AL16UTF16"
78+
db_workload = "OLTP"
79+
pdb_name = "pdbName"
80+
db_backup_config {
81+
auto_backup_enabled = "true"
82+
auto_backup_window = "SLOT_TWO"
83+
backup_deletion_policy = "DELETE_IMMEDIATELY"
84+
backup_destination_details {
85+
dbrs_policy_id = "dbrsPolicyOcid"
86+
type = "DBRS"
87+
}
88+
}
89+
freeform_tags = {
90+
"Department" = "Finance"
91+
}
92+
}
93+
94+
# VM_CLUSTER_BACKUP can also be specified as a source for cloud VM clusters.
95+
source = "VM_CLUSTER_NEW"
96+
db_version = "19.0.0.0"
97+
display_name = "createdDbrsDbHome"
98+
}
99+
100+
70101
resource "oci_database_db_home" "test_db_home_vm_cluster_no_db" {
71102
vm_cluster_id = oci_database_cloud_vm_cluster.test_cloud_vm_cluster.id
72103

examples/database/db_systems/db_exacs/variables.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ variable "private_key_path" {}
88
variable "region" {}
99

1010
variable "compartment_ocid" {}
11-
variable "ssh_public_key" {}
11+
12+
variable "ssh_public_key" {
13+
default = "ssh-rsa"
14+
}
1215
variable "ssh_private_key" {}
1316

1417
variable "cloud_exadata_infrastructure_shape" {

examples/database/exadata_cc/adbd/acd.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ resource "random_string" "db_unique_name" {
66

77
resource "oci_database_autonomous_container_database" "autonomous_container_database" {
88
autonomous_vm_cluster_id = oci_database_autonomous_vm_cluster.test_autonomous_vm_cluster.id
9+
db_version = "19.18.0.1.0"
910
backup_config {
1011
backup_destination_details {
1112
type = "LOCAL"

examples/database/exadata_cc/adbd/adb.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "oci_database_autonomous_database" "test_autonomous_database" {
1010
#Required
1111
admin_password = random_string.autonomous_database_admin_password.result
1212
compartment_id = var.compartment_ocid
13-
cpu_core_count = "1"
13+
compute_count = "2"
1414
data_storage_size_in_tbs = "1"
1515
db_name = "atpdb1"
1616

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
// Copyright (c) 2017, 2023, 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+
11+
variable "build_pipeline_build_pipeline_parameters_items_default_value" {
12+
default = "defaultValue"
13+
}
14+
15+
variable "build_pipeline_build_pipeline_parameters_items_description" {
16+
default = "description"
17+
}
18+
19+
variable "build_pipeline_build_pipeline_parameters_items_name" {
20+
default = "name"
21+
}
22+
23+
variable "build_pipeline_defined_tags_value" {
24+
default = "value"
25+
}
26+
27+
variable "build_pipeline_description" {
28+
default = "description"
29+
}
30+
31+
variable "build_pipeline_display_name" {
32+
default = "displayName"
33+
}
34+
35+
variable "build_pipeline_freeform_tags" {
36+
default = { "bar-key" = "value" }
37+
}
38+
39+
variable "build_pipeline_id" {
40+
default = "id"
41+
}
42+
43+
variable "build_pipeline_state" {
44+
default = "ACTIVE"
45+
}
46+
47+
48+
49+
provider "oci" {
50+
# version = "4.110.0"
51+
tenancy_ocid = var.tenancy_ocid
52+
user_ocid = var.user_ocid
53+
fingerprint = var.fingerprint
54+
private_key_path = var.private_key_path
55+
region = var.region
56+
}
57+
58+
resource "random_string" "topicname" {
59+
length = 10
60+
special = false
61+
}
62+
63+
resource "random_string" "projectname" {
64+
length = 10
65+
special = false
66+
}
67+
68+
resource "oci_ons_notification_topic" "test_notification_topic" {
69+
#Required
70+
compartment_id = var.compartment_ocid
71+
name = join("", ["A", random_string.topicname.result])
72+
}
73+
74+
resource "oci_devops_project" "test_project" {
75+
#Required
76+
compartment_id = var.compartment_ocid
77+
name = join("", ["A", random_string.projectname.result])
78+
notification_config {
79+
#Required
80+
topic_id = oci_ons_notification_topic.test_notification_topic.id
81+
}
82+
}
83+
84+
resource "oci_devops_build_pipeline" "test_build_pipeline" {
85+
#Required
86+
project_id = oci_devops_project.test_project.id
87+
88+
#Optional
89+
build_pipeline_parameters {
90+
#Required
91+
items {
92+
#Required
93+
default_value = var.build_pipeline_build_pipeline_parameters_items_default_value
94+
name = var.build_pipeline_build_pipeline_parameters_items_name
95+
96+
#Optional
97+
description = var.build_pipeline_build_pipeline_parameters_items_description
98+
}
99+
}
100+
description = var.build_pipeline_description
101+
display_name = var.build_pipeline_display_name
102+
}
103+

examples/devops/build_service/build_stage/build_stage.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ variable "base_url" {
4848
resource "oci_ons_notification_topic" "test_notification_topic" {
4949
#Required
5050
compartment_id = var.compartment_ocid
51-
name = random_string.topicname.result
51+
name = join("", ["A", random_string.topicname.result])
5252
}
5353

5454
resource "oci_devops_project" "test_project" {
@@ -177,6 +177,11 @@ resource "oci_devops_build_pipeline_stage" "test_build_pipeline_build_github_sta
177177
image = "OL7_X86_64_STANDARD_10"
178178
primary_build_source = "primaryBuildSource"
179179
stage_execution_timeout_in_seconds = "10"
180+
build_runner_shape_config {
181+
build_runner_type = "CUSTOM"
182+
memory_in_gbs = 4
183+
ocpus = 1
184+
}
180185
build_source_collection {
181186
items {
182187
connection_type = "GITHUB"

examples/functions/main.tf

Lines changed: 45 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ resource "oci_core_subnet" "test_subnet" {
5555
resource "oci_functions_application" "test_application" {
5656
#Required
5757
compartment_id = var.compartment_ocid
58-
display_name = "example-application"
58+
display_name = "example-application-test"
5959
subnet_ids = [oci_core_subnet.test_subnet.id]
6060

6161
#Optional
@@ -83,15 +83,15 @@ data "oci_functions_applications" "test_applications" {
8383
compartment_id = var.compartment_ocid
8484

8585
#Optional
86-
display_name = "example-application"
86+
display_name = "example-application-test"
8787
id = oci_functions_application.test_application.id
8888
state = var.application_state
8989
}
9090

9191
resource "oci_functions_function" "test_function" {
9292
#Required
9393
application_id = oci_functions_application.test_application.id
94-
display_name = "example-function"
94+
display_name = "example-function-test"
9595
image = var.function_image
9696
memory_in_mbs = "128"
9797

@@ -109,84 +109,66 @@ resource "oci_functions_function" "test_function" {
109109
}
110110
}
111111

112-
data "oci_functions_functions" "test_functions" {
113-
#Required
114-
application_id = oci_functions_application.test_application.id
115-
112+
data "oci_functions_pbf_listings" "test_listings" {
116113
#Optional
117-
display_name = "example-function"
118-
id = oci_functions_function.test_function.id
119-
state = "ACTIVE"
114+
name = var.pbf_listing_name
120115
}
121116

122-
resource "time_sleep" "wait_function_provisioning" {
123-
depends_on = [oci_functions_function.test_function]
124-
125-
create_duration = "5s"
117+
data "oci_functions_pbf_listing" "test_listing" {
118+
#Required
119+
pbf_listing_id = var.pbf_listing_id
126120
}
127121

128-
resource "oci_functions_invoke_function" "test_invoke_function" {
129-
depends_on = [time_sleep.wait_function_provisioning]
130-
fn_intent = "httprequest"
131-
fn_invoke_type = "sync"
132-
function_id = oci_functions_function.test_function.id
133-
invoke_function_body = var.invoke_function_body
134-
}
122+
data "oci_functions_pbf_listing_versions" "test_versions" {
123+
#Required
124+
pbf_listing_id = var.pbf_listing_id
135125

136-
resource "oci_functions_invoke_function" "test_invoke_function_source_path" {
137-
depends_on = [time_sleep.wait_function_provisioning]
138-
fn_intent = "httprequest"
139-
fn_invoke_type = "sync"
140-
function_id = oci_functions_function.test_function.id
141-
input_body_source_path = var.invoke_function_body_source_path
126+
#Optional
127+
is_current_version = true
142128
}
143129

144-
resource "oci_functions_invoke_function" "test_invoke_function_detached" {
145-
depends_on = [time_sleep.wait_function_provisioning]
146-
fn_intent = "httprequest"
147-
fn_invoke_type = "detached"
148-
function_id = oci_functions_function.test_function.id
149-
invoke_function_body = var.invoke_function_body
130+
data "oci_functions_pbf_listing_version" "test_version" {
131+
#Required
132+
pbf_listing_version_id = var.pbf_listing_version_id
150133
}
151134

152-
resource "oci_functions_invoke_function" "test_invoke_function_encoded_body" {
153-
depends_on = [time_sleep.wait_function_provisioning]
154-
fn_intent = "cloudevent"
155-
fn_invoke_type = "sync"
156-
function_id = oci_functions_function.test_function.id
157-
invoke_function_body_base64_encoded = base64encode(var.invoke_function_body)
135+
data "oci_functions_pbf_listing_triggers" "test_triggers" {
136+
#Optional
137+
name = var.pbf_trigger_name
158138
}
159139

160-
resource "oci_functions_invoke_function" "test_invoke_function_encoded_body_detached" {
161-
depends_on = [time_sleep.wait_function_provisioning]
162-
fn_intent = "httprequest"
163-
fn_invoke_type = "detached"
164-
function_id = oci_functions_function.test_function.id
165-
invoke_function_body_base64_encoded = base64encode(var.invoke_function_body)
140+
resource "oci_functions_function" "test_pre_built_function" {
141+
application_id = oci_functions_application.test_application.id
142+
display_name = "example-pre-built-function"
143+
memory_in_mbs = "128"
144+
source_details {
145+
pbf_listing_id = var.pbf_listing_id
146+
source_type = "PRE_BUILT_FUNCTIONS"
147+
}
166148
}
167149

168-
resource "oci_functions_invoke_function" "test_invoke_function_encoded_content" {
169-
depends_on = [time_sleep.wait_function_provisioning]
170-
fn_intent = "httprequest"
171-
fn_invoke_type = "sync"
172-
function_id = oci_functions_function.test_function.id
173-
base64_encode_content = true
174-
}
150+
data "oci_functions_functions" "test_pre_built_functions" {
151+
#Required
152+
application_id = oci_functions_application.test_application.id
175153

176-
output "test_invoke_function_content" {
177-
value = oci_functions_invoke_function.test_invoke_function.content
154+
#Optional
155+
display_name = "example-pre-built-function"
156+
id = oci_functions_function.test_pre_built_function.id
157+
state = "ACTIVE"
178158
}
179159

180-
output "test_invoke_function_source_path_content" {
181-
value = oci_functions_invoke_function.test_invoke_function_source_path.content
182-
}
160+
data "oci_functions_functions" "test_functions" {
161+
#Required
162+
application_id = oci_functions_application.test_application.id
183163

184-
output "test_invoke_function_encoded_body" {
185-
value = oci_functions_invoke_function.test_invoke_function_encoded_body.content
164+
#Optional
165+
display_name = "example-function-test"
166+
id = oci_functions_function.test_function.id
167+
state = "ACTIVE"
186168
}
187169

188-
output "test_invoke_function_encoded_content" {
189-
value = base64decode(
190-
oci_functions_invoke_function.test_invoke_function_encoded_content.content,
191-
)
170+
resource "time_sleep" "wait_function_provisioning" {
171+
depends_on = [oci_functions_function.test_function]
172+
173+
create_duration = "5s"
192174
}

examples/functions/variables.tf

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ variable "compartment_ocid" {
2020
}
2121

2222
variable "config" {
23+
type = map(string)
2324
default = {
24-
"MY_FUNCTION_CONFIG" = "ConfVal"
25+
"MEDIA_WORKFLOW_ID" = "someworkflowid"
2526
}
2627
}
2728

@@ -85,11 +86,17 @@ variable "function_timeout_in_seconds" {
8586
default = 30
8687
}
8788

88-
variable "invoke_function_body" {
89+
variable "kms_key_ocid" {
8990
}
9091

91-
variable "invoke_function_body_source_path" {
92+
variable "pbf_listing_name" {
9293
}
9394

94-
variable "kms_key_ocid" {
95+
variable "pbf_listing_id" {
9596
}
97+
98+
variable "pbf_listing_version_id" {
99+
}
100+
101+
variable "pbf_trigger_name" {
102+
}

0 commit comments

Comments
 (0)