Skip to content

Commit ca3fde4

Browse files
authored
Merge pull request #1105 from terraform-providers/release_merge_v3.83.0
Candidate for release_v3.83.0
2 parents 659e87e + be07d06 commit ca3fde4

File tree

404 files changed

+16747
-363
lines changed

Some content is hidden

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

404 files changed

+16747
-363
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
## 3.83.0 (Unreleased)
2+
3+
### Added
4+
- Support for Metering Computation service
5+
- Support for Oracle Cloud VmWare Provisioning service
6+
- Support for Virtual LAN in core service
7+
- Support for HTTP Header in load balancer rule set
8+
- Support for new optional parameters in `oci_core_instance_configuration`
9+
- Support for DBaaS One-off patching
10+
- Support resource discovery and import for `ons_subscriptions` resource
11+
- Support resource discovery for `oci_objectstorage_replication_policy` resource
12+
- Support for specifying the retry timeout duration for API errors in resource discovery using argument `retry_timeout` in the export command. The default retry duration is 15s.
13+
- Support for `MySQL` resource discovery
14+
215
## 3.82.0 (June 24, 2020)
316

417
### Added

examples/compute/instance_pool/instance_pool.tf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,25 @@ resource "oci_core_instance_configuration" "test_instance_configuration" {
136136
instance_details {
137137
instance_type = "compute"
138138

139+
block_volumes {
140+
create_details {
141+
compartment_id = "${var.compartment_ocid}"
142+
display_name = "TestCreateVolumeDetails"
143+
availability_domain = "${data.oci_identity_availability_domain.ad.name}"
144+
size_in_gbs = 50
145+
vpus_per_gb = 2
146+
}
147+
148+
attach_details {
149+
type = "paravirtualized"
150+
display_name = "TestAttachVolumeDetails"
151+
is_read_only = true
152+
device = "TestDeviceName"
153+
is_pv_encryption_in_transit_enabled = true
154+
is_shareable = true
155+
}
156+
}
157+
139158
launch_details {
140159
compartment_id = "${var.compartment_ocid}"
141160
ipxe_script = "ipxeScript"

examples/compute/vlan/vlan.tf

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
variable "tenancy_ocid" {}
2+
variable "user_ocid" {}
3+
variable "fingerprint" {}
4+
variable "private_key_path" {}
5+
variable "compartment_ocid" {}
6+
variable "region" {}
7+
8+
variable defined_tag_namespace_name {
9+
default = ""
10+
}
11+
12+
provider "oci" {
13+
tenancy_ocid = "${var.tenancy_ocid}"
14+
user_ocid = "${var.user_ocid}"
15+
fingerprint = "${var.fingerprint}"
16+
private_key_path = "${var.private_key_path}"
17+
region = "${var.region}"
18+
}
19+
20+
resource "oci_core_internet_gateway" "test_internet_gateway" {
21+
compartment_id = "${var.compartment_ocid}"
22+
vcn_id = "${oci_core_vcn.test_vcn.id}"
23+
}
24+
25+
resource "oci_core_network_security_group" "test_network_security_group" {
26+
compartment_id = "${var.compartment_ocid}"
27+
vcn_id = "${oci_core_vcn.test_vcn.id}"
28+
}
29+
30+
resource "oci_core_route_table" "test_route_table" {
31+
compartment_id = "${var.compartment_ocid}"
32+
vcn_id = "${oci_core_vcn.test_vcn.id}"
33+
}
34+
35+
resource "oci_core_vcn" "test_vcn" {
36+
cidr_block = "10.0.0.0/16"
37+
compartment_id = "${var.compartment_ocid}"
38+
}
39+
40+
data "oci_identity_availability_domains" "test_availability_domains" {
41+
compartment_id = "${var.tenancy_ocid}"
42+
}
43+
44+
resource "oci_identity_tag_namespace" "tag-namespace1" {
45+
compartment_id = "${var.tenancy_ocid}"
46+
description = "example tag namespace"
47+
name = "${var.defined_tag_namespace_name != "" ? var.defined_tag_namespace_name : "example-tag-namespace-all"}"
48+
49+
is_retired = false
50+
}
51+
52+
resource "oci_identity_tag" "tag1" {
53+
description = "example tag"
54+
name = "example-tag"
55+
tag_namespace_id = "${oci_identity_tag_namespace.tag-namespace1.id}"
56+
is_retired = false
57+
}
58+
59+
resource "oci_core_vlan" "test_vlan" {
60+
#Required
61+
availability_domain = "${data.oci_identity_availability_domains.test_availability_domains.availability_domains.0.name}"
62+
cidr_block = "10.0.1.0/24"
63+
compartment_id = "${var.compartment_ocid}"
64+
vcn_id = "${oci_core_vcn.test_vcn.id}"
65+
66+
#Optional
67+
display_name = "displayName"
68+
nsg_ids = ["${oci_core_network_security_group.test_network_security_group.id}"]
69+
route_table_id = "${oci_core_route_table.test_route_table.id}"
70+
vlan_tag = "10"
71+
defined_tags = "${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}"
72+
73+
freeform_tags = {
74+
"Department" = "Finance"
75+
}
76+
}

examples/load_balancer/lb_full/lb_full.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,12 @@ resource "oci_load_balancer_rule_set" "test_rule_set" {
399399
response_code = 302
400400
}
401401

402+
items {
403+
action = "HTTP_HEADER"
404+
are_invalid_characters_allowed = true
405+
http_large_header_size_in_kb = 8
406+
}
407+
402408
load_balancer_id = "${oci_load_balancer.lb1.id}"
403409
name = "example_rule_set_name"
404410
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// Copyright (c) 2017, 2019, 2020, Oracle and/or its affiliates. All rights reserved.
2+
3+
// These variables would commonly be defined as environment variables or sourced in a .env file
4+
5+
variable "tenancy_ocid" {}
6+
variable "user_ocid" {}
7+
variable "fingerprint" {}
8+
variable "private_key_path" {}
9+
variable "compartment_ocid" {}
10+
variable "region" {}
11+
12+
provider "oci" {
13+
region = "${var.region}"
14+
tenancy_ocid = "${var.tenancy_ocid}"
15+
user_ocid = "${var.user_ocid}"
16+
fingerprint = "${var.fingerprint}"
17+
private_key_path = "${var.private_key_path}"
18+
}
19+
20+
variable "time_usage_ended" {}
21+
variable "time_usage_started" {}
22+
variable "dimensions_value" {}
23+
24+
resource "oci_metering_computation_usage" "test_usage" {
25+
#Required
26+
granularity = "DAILY"
27+
tenant_id = "${var.tenancy_ocid}"
28+
time_usage_ended = "${var.time_usage_ended}"
29+
time_usage_started = "${var.time_usage_started}"
30+
31+
#Optional
32+
compartment_depth = 1
33+
34+
filter = <<EOF
35+
{
36+
"operator": "AND",
37+
"dimensions": [],
38+
"tags": [],
39+
"filters": [
40+
{
41+
"operator": "OR",
42+
"dimensions": [
43+
{
44+
"key": "compartmentName",
45+
"value": "${var.dimensions_value}"
46+
}
47+
],
48+
"filters": [],
49+
"tags": []
50+
}
51+
]
52+
}
53+
EOF
54+
55+
group_by = ["service"]
56+
query_type = "COST"
57+
}
58+
59+
data "oci_metering_computation_configuration" "test_configuration" {
60+
tenant_id = "${var.tenancy_ocid}"
61+
}

0 commit comments

Comments
 (0)