Skip to content

Commit 14ead9a

Browse files
authored
Candidate for release_v3.38.0
Candidate for release_v3.38.0
2 parents ee60906 + b9b441a commit 14ead9a

File tree

100 files changed

+709
-590
lines changed

Some content is hidden

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

100 files changed

+709
-590
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
## 3.37.1 (Unreleased)
1+
## 3.38.0 (Unreleased)
2+
3+
### Added
4+
- Documentation update for `oci_waas_waas_policy` and `oci_waas_certificate` with the latest WAF API change
5+
6+
### Fixed
7+
- Fixed the invalid parameter issue on provisioning `oci_core_network_security_group_security_rule` with `icmp_options` without optional attribute `code`
8+
29
## 3.37.0 (August 07, 2019)
310

411
### Added

examples/compute/instance/block.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ resource "oci_core_volume" "TFBlock" {
1111
resource "oci_core_volume_attachment" "TFBlockAttach" {
1212
count = "${var.NumInstances * var.NumIscsiVolumesPerInstance}"
1313
attachment_type = "iscsi"
14-
compartment_id = "${var.compartment_ocid}"
1514
instance_id = "${oci_core_instance.TFInstance.*.id[floor(count.index / var.NumIscsiVolumesPerInstance)]}"
1615
volume_id = "${oci_core_volume.TFBlock.*.id[count.index]}"
1716
device = "${count.index == 0 ? var.volume_attachment_device : ""}"
@@ -35,7 +34,6 @@ resource "oci_core_volume" "TFBlockParavirtualized" {
3534
resource "oci_core_volume_attachment" "TFBlockAttachParavirtualized" {
3635
count = "${var.NumInstances * var.NumParavirtualizedVolumesPerInstance}"
3736
attachment_type = "paravirtualized"
38-
compartment_id = "${var.compartment_ocid}"
3937
instance_id = "${oci_core_instance.TFInstance.*.id[floor(count.index / var.NumParavirtualizedVolumesPerInstance)]}"
4038
volume_id = "${oci_core_volume.TFBlockParavirtualized.*.id[count.index]}"
4139

examples/compute/private_ip/env-vars

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/compute/pv_encryption_enabled_volume_attachment/compute.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ resource "oci_core_volume" "TFVolume" {
3737

3838
resource "oci_core_volume_attachment" "TFVolumeAttachment" {
3939
attachment_type = "paravirtualized"
40-
compartment_id = "${var.compartment_ocid}"
4140
instance_id = "${oci_core_instance.TFInstance.id}"
4241
volume_id = "${oci_core_volume.TFVolume.id}"
4342
display_name = "tf-vol-attach"

examples/compute/windows/windows.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ resource "oci_core_volume" "TFVolume" {
7676

7777
resource "oci_core_volume_attachment" "TFVolumeAttachment" {
7878
attachment_type = "iscsi"
79-
compartment_id = "${var.compartment_ocid}"
8079
instance_id = "${oci_core_instance.TFInstance.id}"
8180
volume_id = "${oci_core_volume.TFVolume.id}"
8281
}

examples/networking/dhcp_options/dhcp_options.tf

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

3-
/*
4-
* This example demonstrates the various dhcp option configurations.
5-
*/
3+
# This example demonstrates the various dhcp option configurations.
64

75
variable "tenancy_ocid" {}
86
variable "user_ocid" {}
@@ -19,17 +17,17 @@ provider "oci" {
1917
region = "${var.region}"
2018
}
2119

22-
resource "oci_core_vcn" "ExampleVCN" {
20+
resource "oci_core_vcn" "example_vcn" {
2321
cidr_block = "10.1.0.0/16"
2422
compartment_id = "${var.compartment_ocid}"
25-
display_name = "TFExampleVCN"
23+
display_name = "exampleVCN"
2624
dns_label = "tfexamplevcn"
2725
}
2826

29-
resource "oci_core_dhcp_options" "ExampleDhcpOptions1" {
27+
resource "oci_core_dhcp_options" "example_dhcp_options_1" {
3028
compartment_id = "${var.compartment_ocid}"
31-
vcn_id = "${oci_core_vcn.ExampleVCN.id}"
32-
display_name = "TFExampleDhcpOptions1"
29+
vcn_id = "${oci_core_vcn.example_vcn.id}"
30+
display_name = "exampleDhcpOptions1"
3331

3432
// required
3533
options {
@@ -44,10 +42,10 @@ resource "oci_core_dhcp_options" "ExampleDhcpOptions1" {
4442
}
4543
}
4644

47-
resource "oci_core_dhcp_options" "ExampleDhcpOptions2" {
45+
resource "oci_core_dhcp_options" "example_dhcp_options_2" {
4846
compartment_id = "${var.compartment_ocid}"
49-
vcn_id = "${oci_core_vcn.ExampleVCN.id}"
50-
display_name = "TFExampleDhcpOptions2"
47+
vcn_id = "${oci_core_vcn.example_vcn.id}"
48+
display_name = "exampleDhcpOptions2"
5149

5250
// required
5351
options {
Lines changed: 48 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,19 @@
11
// Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2-
variable "ip_sec_connection_cpe_local_identifier" {
3-
default = "189.44.2.135"
4-
}
52

6-
variable "ip_sec_connection_cpe_local_identifier_type" {
7-
default = "IP_ADDRESS"
8-
}
3+
variable "tenancy_ocid" {}
4+
variable "user_ocid" {}
5+
variable "fingerprint" {}
6+
variable "private_key_path" {}
7+
variable "region" {}
98

10-
variable "ip_sec_connection_defined_tags_value" {
11-
default = "value"
12-
}
13-
14-
variable "ip_sec_connection_display_name" {
15-
default = "MyIPSecConnection"
16-
}
17-
18-
variable "ip_sec_connection_freeform_tags" {
19-
default = {
20-
"Department" = "Finance"
21-
}
22-
}
23-
24-
variable "ip_sec_connection_static_routes" {
25-
default = ["10.0.0.0/16"]
26-
}
27-
28-
variable "ip_sec_connection_tunnel_configuration_bgp_session_config_customer_bgp_asn" {
29-
default = "1587232876"
30-
}
31-
32-
variable "ip_sec_connection_tunnel_configuration_bgp_session_config_customer_interface_ip" {
33-
default = "10.0.0.16/31"
34-
}
35-
36-
variable "ip_sec_connection_tunnel_configuration_bgp_session_config_oracle_interface_ip" {
37-
default = "10.0.0.17/31"
38-
}
9+
variable "compartment_ocid" {}
3910

40-
variable "ip_sec_connection_tunnel_configuration_display_name" {
41-
default = "MyIPSecConnection"
42-
}
43-
44-
variable "ip_sec_connection_tunnel_configuration_routing" {
45-
default = "BGP"
46-
}
47-
48-
variable "ip_sec_connection_tunnel_configuration_shared_secret" {
49-
default = "sharedSecret"
11+
provider "oci" {
12+
tenancy_ocid = "${var.tenancy_ocid}"
13+
user_ocid = "${var.user_ocid}"
14+
fingerprint = "${var.fingerprint}"
15+
private_key_path = "${var.private_key_path}"
16+
region = "${var.region}"
5017
}
5118

5219
resource oci_core_cpe "test_cpe" {
@@ -65,14 +32,17 @@ resource "oci_core_ipsec" "test_ip_sec_connection" {
6532
compartment_id = "${var.compartment_ocid}"
6633
cpe_id = "${oci_core_cpe.test_cpe.id}"
6734
drg_id = "${oci_core_drg.test_drg.id}"
68-
static_routes = "${var.ip_sec_connection_static_routes}"
35+
static_routes = ["10.0.0.0/16"]
6936

7037
#Optional
71-
cpe_local_identifier = "${var.ip_sec_connection_cpe_local_identifier}"
72-
cpe_local_identifier_type = "${var.ip_sec_connection_cpe_local_identifier_type}"
73-
defined_tags = "${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "${var.ip_sec_connection_defined_tags_value}")}"
74-
display_name = "${var.ip_sec_connection_display_name}"
75-
freeform_tags = "${var.ip_sec_connection_freeform_tags}"
38+
cpe_local_identifier = "189.44.2.135"
39+
cpe_local_identifier_type = "IP_ADDRESS"
40+
defined_tags = "${map("${oci_identity_tag_namespace.tag_namespace1.name}.${oci_identity_tag.tag1.name}", "value")}"
41+
display_name = "MyIPSecConnection"
42+
43+
freeform_tags = {
44+
"Department" = "Finance"
45+
}
7646
}
7747

7848
data "oci_core_ipsec_connections" "test_ip_sec_connections" {
@@ -99,12 +69,33 @@ resource "oci_core_ipsec_connection_tunnel_management" "test_ipsec_connection_tu
9969

10070
#Optional
10171
bgp_session_info {
102-
customer_bgp_asn = "${var.ip_sec_connection_tunnel_configuration_bgp_session_config_customer_bgp_asn}"
103-
customer_interface_ip = "${var.ip_sec_connection_tunnel_configuration_bgp_session_config_customer_interface_ip}"
104-
oracle_interface_ip = "${var.ip_sec_connection_tunnel_configuration_bgp_session_config_oracle_interface_ip}"
72+
customer_bgp_asn = "1587232876"
73+
customer_interface_ip = "10.0.0.16/31"
74+
oracle_interface_ip = "10.0.0.17/31"
10575
}
10676

107-
display_name = "${var.ip_sec_connection_tunnel_configuration_display_name}"
108-
routing = "${var.ip_sec_connection_tunnel_configuration_routing}"
109-
shared_secret = "${var.ip_sec_connection_tunnel_configuration_shared_secret}"
77+
display_name = "MyIPSecConnection"
78+
routing = "BGP"
79+
shared_secret = "sharedSecret"
80+
}
81+
82+
resource "oci_identity_tag_namespace" "tag_namespace1" {
83+
#Required
84+
compartment_id = "${var.tenancy_ocid}"
85+
description = "Just a test"
86+
name = "testexamples-tag-namespace"
87+
}
88+
89+
resource "oci_identity_tag" "tag1" {
90+
#Required
91+
description = "tf example tag"
92+
name = "tf-example-tag"
93+
tag_namespace_id = "${oci_identity_tag_namespace.tag_namespace1.id}"
94+
}
95+
96+
resource "oci_identity_tag" "tag2" {
97+
#Required
98+
description = "tf example tag 2"
99+
name = "tf-example-tag-2"
100+
tag_namespace_id = "${oci_identity_tag_namespace.tag_namespace1.id}"
110101
}

examples/networking/ipsec_connections/provider.tf

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/networking/ipsec_connections/tags.tf

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/networking/nat_service/nat_service_example.tf renamed to examples/networking/nat_gateway/nat_gateway.tf

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

3-
/*
4-
* Sets up a VCN with:
5-
* - NAT gateway
6-
* - bastion subnet and bastion instance
7-
* - private subnet that routes all traffic to the NAT
8-
* - a test instance in the private subnet
9-
*
10-
* After applying, you should be able to ssh into the private instance
11-
* via the bastion and verify internet access via the NAT.
12-
*/
3+
# Sets up a VCN with:
4+
# - NAT gateway
5+
# - bastion subnet and bastion instance
6+
# - private subnet that routes all traffic to the NAT
7+
# - a test instance in the private subnet
8+
#
9+
# After applying, you should be able to ssh into the private instance
10+
# via the bastion and verify internet access via the NAT.
1311

1412
variable "tenancy_ocid" {}
1513
variable "user_ocid" {}

0 commit comments

Comments
 (0)