Skip to content

Commit 6f24b39

Browse files
Releasing version 4.46.0
Releasing version 4.46.0
2 parents 9f3ed41 + 8f7426a commit 6f24b39

File tree

10,036 files changed

+108848
-90625
lines changed

Some content is hidden

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

10,036 files changed

+108848
-90625
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 4.46.0 (Unreleased)
2+
3+
### Added
4+
- Support for oneWay TLS support for ADBS
5+
- Support for Functions Network Security Group
6+
- Support for Signed Image Functions
7+
- Support for NSGs in API Gateway
8+
- Migrate Data Safe service console to OCI console
9+
- Publisher Map feature Monitoring added to Email
10+
11+
### Deprecated
12+
- Database Migration service will be deprecated
13+
114
## 4.45.0 (September 22, 2021)
215

316
### Added

examples/database/adb/autonomous_database.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ resource "oci_database_autonomous_database_backup" "autonomous_database_backup"
8585
display_name = var.autonomous_database_backup_display_name
8686
}
8787

88+
resource "oci_database_autonomous_database" "autonomous_database_oneway_tls_connection" {
89+
admin_password = random_string.autonomous_database_admin_password.result
90+
compartment_id = var.compartment_ocid
91+
cpu_core_count = "1"
92+
data_storage_size_in_tbs = "1"
93+
db_name = "adbOneWay"
94+
95+
whitelisted_ips = ["1.1.1.1"]
96+
is_mtls_connection_required = "true"
97+
}
98+
8899
// Per service, we need to pass in a back up that is at least 2 hours old
89100
/*
90101
resource "oci_database_autonomous_database" "autonomous_database_from_backup_id" {

examples/functions/main.tf

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ provider "oci" {
99
region = var.region
1010
}
1111

12-
data "oci_identity_availability_domains" "test_availability_domains" {
13-
compartment_id = var.tenancy_ocid
14-
}
15-
1612
resource "oci_core_vcn" "test_vcn" {
1713
cidr_block = "10.0.0.0/16"
1814
compartment_id = var.compartment_ocid
@@ -37,10 +33,12 @@ resource "oci_core_route_table" "test_route_table" {
3733
vcn_id = oci_core_vcn.test_vcn.id
3834
}
3935

36+
resource "oci_core_network_security_group" "test_network_security_group" {
37+
compartment_id = var.compartment_ocid
38+
vcn_id = oci_core_vcn.test_vcn.id
39+
}
40+
4041
resource "oci_core_subnet" "test_subnet" {
41-
availability_domain = lower(
42-
data.oci_identity_availability_domains.test_availability_domains.availability_domains[0].name,
43-
)
4442
cidr_block = "10.0.0.0/16"
4543
compartment_id = var.compartment_ocid
4644
dhcp_options_id = oci_core_vcn.test_vcn.default_dhcp_options_id
@@ -61,8 +59,19 @@ resource "oci_functions_application" "test_application" {
6159
subnet_ids = [oci_core_subnet.test_subnet.id]
6260

6361
#Optional
64-
config = var.config
65-
syslog_url = var.syslog_url
62+
config = var.config
63+
syslog_url = var.syslog_url
64+
network_security_group_ids = [oci_core_network_security_group.test_network_security_group.id]
65+
image_policy_config {
66+
#Required
67+
is_policy_enabled = var.application_image_policy_config_is_policy_enabled
68+
69+
#Optional
70+
key_details {
71+
#Required
72+
kms_key_id = var.kms_key_ocid
73+
}
74+
}
6675
trace_config {
6776
domain_id = var.application_trace_config.domain_id
6877
is_enabled = var.application_trace_config.is_enabled
@@ -102,45 +111,57 @@ data "oci_functions_functions" "test_functions" {
102111
#Optional
103112
display_name = "example-function"
104113
id = oci_functions_function.test_function.id
105-
state = "AVAILABLE"
114+
state = "ACTIVE"
115+
}
116+
117+
resource "time_sleep" "wait_function_provisioning" {
118+
depends_on = [oci_functions_function.test_function]
119+
120+
create_duration = "5s"
106121
}
107122

108123
resource "oci_functions_invoke_function" "test_invoke_function" {
124+
depends_on = [time_sleep.wait_function_provisioning]
109125
fn_intent = "httprequest"
110126
fn_invoke_type = "sync"
111127
function_id = oci_functions_function.test_function.id
112128
invoke_function_body = var.invoke_function_body
113129
}
114130

115131
resource "oci_functions_invoke_function" "test_invoke_function_source_path" {
132+
depends_on = [time_sleep.wait_function_provisioning]
116133
fn_intent = "httprequest"
117134
fn_invoke_type = "sync"
118135
function_id = oci_functions_function.test_function.id
119136
input_body_source_path = var.invoke_function_body_source_path
120137
}
121138

122139
resource "oci_functions_invoke_function" "test_invoke_function_detached" {
140+
depends_on = [time_sleep.wait_function_provisioning]
123141
fn_intent = "httprequest"
124142
fn_invoke_type = "detached"
125143
function_id = oci_functions_function.test_function.id
126144
invoke_function_body = var.invoke_function_body
127145
}
128146

129147
resource "oci_functions_invoke_function" "test_invoke_function_encoded_body" {
148+
depends_on = [time_sleep.wait_function_provisioning]
130149
fn_intent = "cloudevent"
131150
fn_invoke_type = "sync"
132151
function_id = oci_functions_function.test_function.id
133152
invoke_function_body_base64_encoded = base64encode(var.invoke_function_body)
134153
}
135154

136155
resource "oci_functions_invoke_function" "test_invoke_function_encoded_body_detached" {
156+
depends_on = [time_sleep.wait_function_provisioning]
137157
fn_intent = "httprequest"
138158
fn_invoke_type = "detached"
139159
function_id = oci_functions_function.test_function.id
140160
invoke_function_body_base64_encoded = base64encode(var.invoke_function_body)
141161
}
142162

143163
resource "oci_functions_invoke_function" "test_invoke_function_encoded_content" {
164+
depends_on = [time_sleep.wait_function_provisioning]
144165
fn_intent = "httprequest"
145166
fn_invoke_type = "sync"
146167
function_id = oci_functions_function.test_function.id
@@ -164,4 +185,3 @@ output "test_invoke_function_encoded_content" {
164185
oci_functions_invoke_function.test_invoke_function_encoded_content.content,
165186
)
166187
}
167-

examples/functions/variables.tf

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,17 @@ variable "application_trace_config" {
3838
is_enabled = bool
3939
})
4040
default = {
41-
is_enabled = true
41+
domain_id = ""
42+
is_enabled = false
4243
}
4344
}
4445

4546
variable "syslog_url" {
47+
default = ""
48+
}
49+
50+
variable "application_image_policy_config_is_policy_enabled" {
51+
default = false
4652
}
4753

4854
##### Docker image ######
@@ -53,7 +59,7 @@ variable "syslog_url" {
5359
#
5460

5561
variable "application_state" {
56-
default = "AVAILABLE"
62+
default = "ACTIVE"
5763
}
5864

5965
variable "function_image" {
@@ -67,7 +73,7 @@ variable "function_trace_config" {
6773
is_enabled = bool
6874
})
6975
default = {
70-
is_enabled = true
76+
is_enabled = false
7177
}
7278
}
7379

@@ -85,3 +91,5 @@ variable "invoke_function_body" {
8591
variable "invoke_function_body_source_path" {
8692
}
8793

94+
variable "kms_key_ocid" {
95+
}

examples/monitoring/alarms/alarms.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ variable "alarm_is_enabled" {
4949
default = false
5050
}
5151

52+
variable "alarm_message_format" {
53+
default = "ONS_OPTIMIZED"
54+
}
55+
5256
variable "alarm_metric_compartment_id_in_subtree" {
5357
default = false
5458
}
@@ -157,6 +161,7 @@ resource "oci_monitoring_alarm" "test_alarm" {
157161

158162
#Optional
159163
body = var.alarm_body
164+
message_format = var.alarm_message_format
160165
metric_compartment_id_in_subtree = var.alarm_metric_compartment_id_in_subtree
161166
pending_duration = var.alarm_pending_duration
162167
repeat_notification_duration = var.alarm_repeat_notification_duration

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/hashicorp/hcl2 v0.0.0-20190618163856-0b64543c968c
88
github.com/hashicorp/terraform-exec v0.13.3
99
github.com/hashicorp/terraform-plugin-sdk v1.17.2
10-
github.com/oracle/oci-go-sdk/v47 v47.1.0
10+
github.com/oracle/oci-go-sdk/v48 v48.0.0
1111
github.com/stretchr/testify v1.7.0
1212
golang.org/x/mod v0.4.2
1313
gopkg.in/yaml.v2 v2.3.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ
302302
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
303303
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
304304
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
305-
github.com/oracle/oci-go-sdk/v47 v47.1.0 h1:oXkuD18OpcE2bsl6AHMJWKcoPcQrsFq7TiNzCuDiRU8=
306-
github.com/oracle/oci-go-sdk/v47 v47.1.0/go.mod h1:kO/m5/YgYWrCnLqdudqvhKEUxexwGR2hc6Mogu+8QZw=
305+
github.com/oracle/oci-go-sdk/v48 v48.0.0 h1:ux/bkBFIHOPWhcCxx/c67jTIr/TDGJGRKn5rW6zqy1s=
306+
github.com/oracle/oci-go-sdk/v48 v48.0.0/go.mod h1:eCa0yXKSofRr/J5fv8pqnxX72yTG2FkbBkL5vC2RXuQ=
307307
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
308308
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
309309
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=

oci/ai_anomaly_detection_ai_private_endpoint_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"context"
88

99
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
10-
oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v47/aianomalydetection"
10+
oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v48/aianomalydetection"
1111
)
1212

1313
func init() {

oci/ai_anomaly_detection_ai_private_endpoint_resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
1414
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
1515

16-
oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v47/aianomalydetection"
17-
oci_common "github.com/oracle/oci-go-sdk/v47/common"
16+
oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v48/aianomalydetection"
17+
oci_common "github.com/oracle/oci-go-sdk/v48/common"
1818
)
1919

2020
func init() {

oci/ai_anomaly_detection_ai_private_endpoint_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
1414
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
1515
"github.com/hashicorp/terraform-plugin-sdk/terraform"
16-
oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v47/aianomalydetection"
17-
"github.com/oracle/oci-go-sdk/v47/common"
16+
oci_ai_anomaly_detection "github.com/oracle/oci-go-sdk/v48/aianomalydetection"
17+
"github.com/oracle/oci-go-sdk/v48/common"
1818

1919
"github.com/terraform-providers/terraform-provider-oci/httpreplay"
2020
)

0 commit comments

Comments
 (0)