Skip to content

Commit 021fba1

Browse files
authored
Merge pull request #983 from terraform-providers/release_merge_v3.64.0
Candidate for release_v3.64.0
2 parents 5fc40e2 + 821c4af commit 021fba1

File tree

80 files changed

+3829
-76
lines changed

Some content is hidden

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

80 files changed

+3829
-76
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
## 3.64.0 (Unreleased)
2+
3+
### Added
4+
- Support Functions integration for ONS service
5+
- Support IP-based policy for Identity Service
6+
- Support Extensions to Tenancy, User, Group entities in IAM
7+
- Support private access in `oci_database_autonomous_database` resource
8+
29
## 3.63.0 (February 19, 2020)
310

411
### Added
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
// Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2+
3+
variable "tenancy_ocid" {}
4+
variable "user_ocid" {}
5+
variable "fingerprint" {}
6+
variable "private_key_path" {}
7+
variable "region" {}
8+
variable "compartment_id" {}
9+
10+
variable "network_source_defined_tags_value" {
11+
default = "value"
12+
}
13+
14+
variable "network_source_description" {
15+
default = "corporate ip ranges to be used for ip based authorization"
16+
}
17+
18+
variable "network_source_freeform_tags" {
19+
default = {
20+
"Department" = "Finance"
21+
}
22+
}
23+
24+
variable "network_source_name" {
25+
default = "corpnet"
26+
}
27+
28+
variable "network_source_public_source_list" {
29+
default = ["128.2.13.5"]
30+
}
31+
32+
variable "network_source_services" {
33+
default = ["all"]
34+
}
35+
36+
variable "network_source_virtual_source_list" {
37+
default = []
38+
}
39+
40+
provider "oci" {
41+
tenancy_ocid = "${var.tenancy_ocid}"
42+
user_ocid = "${var.user_ocid}"
43+
fingerprint = "${var.fingerprint}"
44+
private_key_path = "${var.private_key_path}"
45+
region = "${var.region}"
46+
}
47+
48+
resource "oci_core_vcn" "vcn1" {
49+
cidr_block = "10.0.0.0/16"
50+
dns_label = "vcn1"
51+
compartment_id = "${var.compartment_id}"
52+
display_name = "vcn1"
53+
}
54+
55+
resource "oci_identity_network_source" "test_network_source" {
56+
#Required
57+
compartment_id = "${var.tenancy_ocid}"
58+
description = "${var.network_source_description}"
59+
name = "${var.network_source_name}"
60+
61+
#Optional
62+
freeform_tags = "${var.network_source_freeform_tags}"
63+
public_source_list = "${var.network_source_public_source_list}"
64+
services = "${var.network_source_services}"
65+
66+
virtual_source_list = {
67+
vcn_id = "${oci_core_vcn.vcn1.id}"
68+
ip_ranges = ["10.0.0.0/16"]
69+
}
70+
}
71+
72+
data "oci_identity_network_sources" "test_network_sources" {
73+
#Required
74+
compartment_id = "${var.tenancy_ocid}"
75+
76+
filter = {
77+
name = "id"
78+
values = ["${oci_identity_network_source.test_network_source.id}"]
79+
}
80+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
// Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2+
3+
variable "config" {
4+
default = {
5+
"MY_FUNCTION_CONFIG" = "ConfVal"
6+
}
7+
}
8+
9+
variable "image" {}
10+
variable "image_digest" {}
11+
12+
data "oci_identity_availability_domains" "test_availability_domains" {
13+
compartment_id = "${var.tenancy_ocid}"
14+
}
15+
16+
resource "oci_core_vcn" "test_vcn" {
17+
cidr_block = "10.0.0.0/16"
18+
compartment_id = "${var.compartment_ocid}"
19+
display_name = "tf-vcn"
20+
dns_label = "dnslabel"
21+
}
22+
23+
resource "oci_core_internet_gateway" "test_network_entity" {
24+
compartment_id = "${var.compartment_ocid}"
25+
vcn_id = "${oci_core_vcn.test_vcn.id}"
26+
display_name = "-tf-internet-gateway"
27+
}
28+
29+
resource "oci_core_route_table" "test_route_table" {
30+
compartment_id = "${var.compartment_ocid}"
31+
32+
route_rules {
33+
cidr_block = "0.0.0.0/0"
34+
network_entity_id = "${oci_core_internet_gateway.test_network_entity.id}"
35+
}
36+
37+
vcn_id = "${oci_core_vcn.test_vcn.id}"
38+
}
39+
40+
resource "oci_core_subnet" "test_subnet" {
41+
availability_domain = "${lower("${data.oci_identity_availability_domains.test_availability_domains.availability_domains.0.name}")}"
42+
cidr_block = "10.0.0.0/16"
43+
compartment_id = "${var.compartment_ocid}"
44+
dhcp_options_id = "${oci_core_vcn.test_vcn.default_dhcp_options_id}"
45+
display_name = "tf-subnet"
46+
dns_label = "dnslabel"
47+
prohibit_public_ip_on_vnic = "false"
48+
route_table_id = "${oci_core_route_table.test_route_table.id}"
49+
security_list_ids = ["${oci_core_vcn.test_vcn.default_security_list_id}"]
50+
vcn_id = "${oci_core_vcn.test_vcn.id}"
51+
}
52+
53+
resource "oci_functions_application" "test_application" {
54+
#Required
55+
compartment_id = "${var.compartment_ocid}"
56+
display_name = "example-application"
57+
subnet_ids = ["${oci_core_subnet.test_subnet.id}"]
58+
59+
#Optional
60+
config = "${var.config}"
61+
}
62+
63+
resource "oci_functions_function" "test_function" {
64+
#Required
65+
application_id = "${oci_functions_application.test_application.id}"
66+
display_name = "example-function"
67+
image = "${var.image}"
68+
memory_in_mbs = "128"
69+
70+
#Optional
71+
config = "${var.config}"
72+
image_digest = "${var.image_digest}"
73+
timeout_in_seconds = "30"
74+
}

examples/ons/subscription/provider.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,12 @@ variable "subscription_defined_tags_value" {
5050
default = "value"
5151
}
5252

53-
variable "subscription_endpoint" {
54-
default = "[email protected]"
55-
}
56-
5753
variable "subscription_freeform_tags" {
5854
default = {
5955
"Department" = "Finance"
6056
}
6157
}
6258

63-
variable "subscription_protocol" {
64-
default = "EMAIL"
65-
}
66-
6759
provider "oci" {
6860
region = "${var.region}"
6961
tenancy_ocid = "${var.tenancy_ocid}"

examples/ons/subscription/subscription.tf

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
// Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
22

3-
resource "oci_ons_subscription" "test_subscription" {
3+
resource "oci_ons_subscription" "test_subscription_email" {
44
#Required
55
compartment_id = "${var.compartment_ocid}"
6-
endpoint = "${var.subscription_endpoint}"
7-
protocol = "${var.subscription_protocol}"
6+
endpoint = "[email protected]"
7+
protocol = "EMAIL"
8+
topic_id = "${oci_ons_notification_topic.test_notification_topic.id}"
9+
10+
#Optional
11+
defined_tags = "${map("${oci_identity_tag_namespace.tag_namespace1.name}.${oci_identity_tag.tag1.name}", "${var.subscription_defined_tags_value}")}"
12+
freeform_tags = "${var.subscription_freeform_tags}"
13+
}
14+
15+
resource "oci_ons_subscription" "test_subscription_funtions" {
16+
#Required
17+
compartment_id = "${var.compartment_ocid}"
18+
endpoint = "${oci_functions_function.test_function.id}"
19+
protocol = "ORACLE_FUNCTIONS"
820
topic_id = "${oci_ons_notification_topic.test_notification_topic.id}"
921

1022
#Optional
@@ -17,5 +29,5 @@ data "oci_ons_subscriptions" "test_subscriptions" {
1729
compartment_id = "${var.compartment_ocid}"
1830

1931
#Optional
20-
topic_id = "${oci_ons_subscription.test_subscription.topic_id}"
32+
topic_id = "${oci_ons_subscription.test_subscription_email.topic_id}"
2133
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce
77
github.com/hashicorp/terraform v0.12.4-0.20190628193153-a74738cd35fc
88
github.com/mitchellh/cli v1.0.0
9-
github.com/oracle/oci-go-sdk v15.6.0+incompatible
9+
github.com/oracle/oci-go-sdk v15.7.0+incompatible
1010
github.com/stretchr/objx v0.1.1 // indirect
1111
github.com/stretchr/testify v1.3.0
1212
gopkg.in/yaml.v2 v2.2.2

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ github.com/oracle/oci-go-sdk v15.5.0+incompatible h1:GdG5NWt+lhv0+WslpaF1dbz8KkS
354354
github.com/oracle/oci-go-sdk v15.5.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
355355
github.com/oracle/oci-go-sdk v15.6.0+incompatible h1:6kX7J6cJnFeWwCPUfiywDD5joxx6qQbJ0SyqnaaKlqU=
356356
github.com/oracle/oci-go-sdk v15.6.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
357+
github.com/oracle/oci-go-sdk v15.7.0+incompatible h1:CkhSZ7dL9yB/rNbVX+MVFHojuMTo+4dFOSorz/iNxmY=
358+
github.com/oracle/oci-go-sdk v15.7.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
357359
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58 h1:m3CEgv3ah1Rhy82L+c0QG/U3VyY1UsvsIdkh0/rU97Y=
358360
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58/go.mod h1:f6Izs6JvFTdnRbziASagjZ2vmf55NSIkC/weStxCHqk=
359361
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs=

oci/database_autonomous_database_data_source.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,26 @@ func (s *DatabaseAutonomousDatabaseDataSourceCrud) SetData() error {
134134
s.D.Set("lifecycle_details", *s.Res.LifecycleDetails)
135135
}
136136

137+
s.D.Set("nsg_ids", s.Res.NsgIds)
138+
139+
if s.Res.PrivateEndpoint != nil {
140+
s.D.Set("private_endpoint", *s.Res.PrivateEndpoint)
141+
}
142+
143+
if s.Res.PrivateEndpointLabel != nil {
144+
s.D.Set("private_endpoint_label", *s.Res.PrivateEndpointLabel)
145+
}
146+
137147
if s.Res.ServiceConsoleUrl != nil {
138148
s.D.Set("service_console_url", *s.Res.ServiceConsoleUrl)
139149
}
140150

141151
s.D.Set("state", s.Res.LifecycleState)
142152

153+
if s.Res.SubnetId != nil {
154+
s.D.Set("subnet_id", *s.Res.SubnetId)
155+
}
156+
143157
if s.Res.SystemTags != nil {
144158
s.D.Set("system_tags", systemTagsToMap(s.Res.SystemTags))
145159
}

0 commit comments

Comments
 (0)