Skip to content

Commit 22d6137

Browse files
Merge pull request #1039 from terraform-providers/release_merge_v3.72.0
Candidate for release_v3.72.0
2 parents abe93b2 + ec86298 commit 22d6137

File tree

2,996 files changed

+11878
-6428
lines changed

Some content is hidden

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

2,996 files changed

+11878
-6428
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
## 3.72.0 (Unreleased)
2+
3+
### Added
4+
- Support for resource discovery in Big Data service
5+
- Support for Scheduled Cross-Region Backups in `oci_core_volume_backup_policy`
6+
- Support Closing InstanceConfigurationLaunchInstanceDetails parity gaps with LaunchInstanceDetails
7+
- Support Flexible Infrastructure - Flexible VM Instance
8+
- Support for object versioning in Object Storage
9+
- Support for `is_free_tier_enabled` attribute in `oci_database_autonomous_db_versions` data source
10+
- Support for `maintenance_window` in `oci_database_db_system` resource for ExaCS infrastructure
11+
12+
### Fixed
13+
- Update `cpu_core_count` with the other attributes in `oci_database_db_system` resource [Github issue #1026](https://github.com/terraform-providers/terraform-provider-oci/issues/1026)
14+
15+
### Notes
16+
`oci_streaming_stream_archiver` data source and resource were not supported by the service and removed from the provider since v3.72.0
17+
218
## 3.71.0 (April 16, 2020)
319

420
### Added

examples/compute/instance/instance.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ variable "instance_shape" {
3838
default = "VM.Standard2.1"
3939
}
4040

41+
variable "instance_ocpus" {
42+
default = 1
43+
}
44+
4145
variable "instance_image_ocid" {
4246
type = "map"
4347

@@ -71,6 +75,10 @@ resource "oci_core_instance" "test_instance" {
7175
display_name = "TestInstance${count.index}"
7276
shape = "${var.instance_shape}"
7377

78+
shape_config {
79+
ocpus = "${var.instance_ocpus}"
80+
}
81+
7482
create_vnic_details {
7583
subnet_id = "${oci_core_subnet.test_subnet.id}"
7684
display_name = "Primaryvnic"

examples/compute/instance_pool/instance_pool.tf

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,26 @@ resource "oci_core_instance_configuration" "test_instance_configuration" {
136136
instance_type = "compute"
137137

138138
launch_details {
139-
compartment_id = "${var.compartment_ocid}"
140-
ipxe_script = "ipxeScript"
141-
shape = "${var.instance_shape}"
142-
display_name = "TestInstanceConfigurationLaunchDetails"
139+
compartment_id = "${var.compartment_ocid}"
140+
ipxe_script = "ipxeScript"
141+
shape = "${var.instance_shape}"
142+
display_name = "TestInstanceConfigurationLaunchDetails"
143+
is_pv_encryption_in_transit_enabled = false
144+
preferred_maintenance_action = "LIVE_MIGRATE"
145+
launch_mode = "NATIVE"
146+
147+
agent_config {
148+
is_management_disabled = false
149+
is_monitoring_disabled = false
150+
}
151+
152+
launch_options {
153+
network_type = "PARAVIRTUALIZED"
154+
}
155+
156+
shape_config {
157+
ocpus = 1
158+
}
143159

144160
create_vnic_details {
145161
assign_public_ip = true

examples/database/db_systems/db_exadata/resources.tf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,23 @@ resource "oci_database_db_system" "test_db_system" {
2525
display_name = "MyTFDBHome1Exa"
2626
}
2727

28+
maintenance_window_details {
29+
preference = "CUSTOM_PREFERENCE"
30+
31+
days_of_week {
32+
name = "MONDAY"
33+
}
34+
35+
hours_of_day = ["4"]
36+
lead_time_in_weeks = 2
37+
38+
months {
39+
name = "APRIL"
40+
}
41+
42+
weeks_of_month = ["2"]
43+
}
44+
2845
disk_redundancy = "${var.db_disk_redundancy}"
2946
shape = "${var.db_system_shape}"
3047
subnet_id = "${oci_core_subnet.subnet.id}"

examples/object_storage/bucket.tf

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@ resource "oci_objectstorage_bucket" "bucket1" {
1111
access_type = "NoPublicAccess"
1212
}
1313

14+
resource "oci_objectstorage_bucket" "bucket_with_versioning" {
15+
compartment_id = "${var.compartment_ocid}"
16+
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
17+
name = "bucketWithVersioning"
18+
access_type = "NoPublicAccess"
19+
versioning = "Suspended"
20+
}
21+
1422
resource "oci_objectstorage_object_lifecycle_policy" "lifecyclePolicy1" {
1523
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
16-
bucket = "tf-example-bucket"
24+
bucket = "${oci_objectstorage_bucket.bucket1.name}"
1725

1826
#Optional
1927
rules {
@@ -48,11 +56,21 @@ output buckets {
4856

4957
data "oci_objectstorage_object_lifecycle_policy" "lifecyclePolicies1" {
5058
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
51-
bucket = "tf-example-bucket"
59+
bucket = "${oci_objectstorage_bucket.bucket1.name}"
5260

5361
depends_on = ["oci_objectstorage_object_lifecycle_policy.lifecyclePolicy1"]
5462
}
5563

5664
output lifecyclePolicies1 {
5765
value = "${data.oci_objectstorage_object_lifecycle_policy.lifecyclePolicies1.rules}"
5866
}
67+
68+
data "oci_objectstorage_object_versions" "test_object_versions1" {
69+
#Required
70+
bucket = "${oci_objectstorage_bucket.bucket1.name}"
71+
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
72+
}
73+
74+
output test_object_versions1 {
75+
value = "${data.oci_objectstorage_object_versions.test_object_versions1.items}"
76+
}

examples/object_storage/object.tf

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ resource "oci_objectstorage_object" "source_object" {
2323
object = "same_index.html"
2424
content_language = "en-US"
2525
content_type = "text/html"
26-
source = "index.html"
26+
source = "${oci_objectstorage_object.object1.object}"
2727
content_disposition = "attachment; filename=\"filename.html\""
2828
}
2929

@@ -39,10 +39,29 @@ resource "oci_objectstorage_object" "source_uri_object" {
3939
region = "${local.source_region}"
4040
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
4141
bucket = "${oci_objectstorage_bucket.bucket1.name}"
42-
object = "index.html"
42+
object = "${oci_objectstorage_object.object1.object}"
4343
}
4444
}
4545

46+
resource "oci_objectstorage_object" "source_uri_object_from_version" {
47+
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
48+
bucket = "${oci_objectstorage_bucket.bucket_with_versioning.name}"
49+
object = "copy_from_version_index.html"
50+
content_language = "en-US"
51+
content_type = "text/html"
52+
content_disposition = "attachment; filename=\"filename.html\""
53+
54+
source_uri_details {
55+
region = "${local.source_region}"
56+
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
57+
bucket = "${oci_objectstorage_bucket.bucket1.name}"
58+
object = "${oci_objectstorage_object.object1.object}"
59+
source_version_id = "${oci_objectstorage_object.object1.version_id}"
60+
}
61+
62+
delete_all_object_versions = true
63+
}
64+
4665
data "oci_objectstorage_object_head" "object_head1" {
4766
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
4867
bucket = "${oci_objectstorage_bucket.bucket1.name}"

examples/object_storage/retentionrule.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ resource "oci_objectstorage_bucket" "retention_rule_bucket" {
2424

2525
data "oci_objectstorage_bucket" "retention_rule_bucket" {
2626
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
27-
name = "tf-example-bucket-with-retention-rule"
27+
name = "${oci_objectstorage_bucket.retention_rule_bucket.name}"
2828
}
2929

3030
output "retention_rules_on_bucket" {

examples/storage/block/volume/volume_backup_policy.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ variable "fingerprint" {}
66
variable "private_key_path" {}
77
variable "region" {}
88
variable "compartment_ocid" {}
9+
variable "destination_region" {}
910

1011
provider "oci" {
1112
tenancy_ocid = "${var.tenancy_ocid}"
@@ -87,6 +88,8 @@ resource "oci_core_volume_backup_policy" "test_volume_backup_policy_custom" {
8788
offset_type = "STRUCTURED"
8889
time_zone = "UTC"
8990
}
91+
92+
destination_region = "${var.destination_region}"
9093
}
9194

9295
resource "oci_core_volume" "test_volume_2" {

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 v17.4.0+incompatible
9+
github.com/oracle/oci-go-sdk v18.0.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
@@ -438,6 +438,8 @@ github.com/oracle/oci-go-sdk v17.3.0+incompatible h1:a9PyjUO0hU/FvwUqOcFMfWS3iz3
438438
github.com/oracle/oci-go-sdk v17.3.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
439439
github.com/oracle/oci-go-sdk v17.4.0+incompatible h1:W9yFhlwQ9+p0mE2oPrS++v821eIT17gTUpJXkmGZb9o=
440440
github.com/oracle/oci-go-sdk v17.4.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
441+
github.com/oracle/oci-go-sdk v18.0.0+incompatible h1:FLV4KixsVfF3rwyVTMI6Ryp/Q+OSb9sR5TawbfjFLN4=
442+
github.com/oracle/oci-go-sdk v18.0.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
441443
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58 h1:m3CEgv3ah1Rhy82L+c0QG/U3VyY1UsvsIdkh0/rU97Y=
442444
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58/go.mod h1:f6Izs6JvFTdnRbziASagjZ2vmf55NSIkC/weStxCHqk=
443445
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs=

0 commit comments

Comments
 (0)