Skip to content

Commit 7b8fd0c

Browse files
authored
Merge pull request #629 from terraform-providers/release
Release v3.5.0
2 parents 2cecf4c + 40603e0 commit 7b8fd0c

File tree

389 files changed

+9558
-909
lines changed

Some content is hidden

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

389 files changed

+9558
-909
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
## 3.5.0 (Unreleased)
2+
3+
### Added
4+
- Support for [Cross Region Copy](https://docs.cloud.oracle.com/iaas/Content/Object/Tasks/copyingobjects.htm) of objects
5+
- Support for object lifecycle policies on a bucket on object storage. See [Using Object Lifecycle Management](https://docs.cloud.oracle.com/iaas/Content/Object/Tasks/usinglifecyclepolicies.htm)
6+
- Support for singular data source for a bucket
7+
- Additional nested field in `oci_database_backups` data source and `oci_database_backup` resource, under the `backups` property called `database_size_in_gbs`
8+
- Support for generating and downloading wallets for Autonomous Database and Autonomous Data Warehouse. See [Connecting to Autonomous Data Warehouse](https://docs.cloud.oracle.com/iaas/Content/Database/Tasks/adwconnecting.htm) for more details.
9+
10+
### Changed
11+
- Nested field in `oci_database_backups` data source and `oci_database_backup` resource, under the `backups` property called `db_data_size_in_mbs` marked as deprecated
12+
213
## 3.4.0 (October 11, 2018)
314

415
### Added

docs/examples/database/adw/autonomous_data_warehouse.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ output "autonomous_data_warehouse_admin_password" {
3333
output "autonomous_data_warehouses" {
3434
value = "${data.oci_database_autonomous_data_warehouses.autonomous_data_warehouses.autonomous_data_warehouses}"
3535
}
36+
37+
output "parallel_connection_string" {
38+
value = ["${lookup(oci_database_autonomous_data_warehouse.autonomous_data_warehouse.connection_strings.0.all_connection_strings, "PARALLEL", "Unavailable")}"]
39+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
resource "random_string" "wallet_password" {
2+
length = 16
3+
special = true
4+
}
5+
6+
data "oci_database_autonomous_data_warehouse_wallet" "autonomous_data_warehouse_wallet" {
7+
#Required
8+
autonomous_data_warehouse_id = "${oci_database_autonomous_data_warehouse.autonomous_data_warehouse.id}"
9+
password = "${random_string.wallet_password.result}"
10+
}
11+
12+
resource "local_file" "autonomous_data_warehouse_wallet_file" {
13+
content = "${data.oci_database_autonomous_data_warehouse_wallet.autonomous_data_warehouse_wallet.content}"
14+
filename = "${path.module}/autonomous_data_warehouse_wallet.zip"
15+
}
16+
17+
output "wallet_password" {
18+
value = ["${random_string.wallet_password.result}"]
19+
}

docs/examples/database/atp/autonomous_database.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ output "autonomous_database_admin_password" {
3232
output "autonomous_databases" {
3333
value = "${data.oci_database_autonomous_databases.autonomous_databases.autonomous_databases}"
3434
}
35+
36+
output "parallel_connection_string" {
37+
value = ["${lookup(oci_database_autonomous_database.autonomous_database.connection_strings.0.all_connection_strings, "PARALLEL", "Unavailable")}"]
38+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
resource "random_string" "wallet_password" {
2+
length = 16
3+
special = true
4+
}
5+
6+
data "oci_database_autonomous_database_wallet" "autonomous_database_wallet" {
7+
#Required
8+
autonomous_database_id = "${oci_database_autonomous_database.autonomous_database.id}"
9+
password = "${random_string.wallet_password.result}"
10+
}
11+
12+
resource "local_file" "autonomous_database_wallet_file" {
13+
content = "${data.oci_database_autonomous_database_wallet.autonomous_database_wallet.content}"
14+
filename = "${path.module}/autonomous_database_wallet.zip"
15+
}
16+
17+
output "wallet_password" {
18+
value = ["${random_string.wallet_password.result}"]
19+
}

docs/examples/db_systems/network.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ resource "oci_core_virtual_network" "vcn" {
22
cidr_block = "10.1.0.0/16"
33
compartment_id = "${var.compartment_ocid}"
44
display_name = "TFExampleVCNDBSystem"
5-
dns_label = "tfexamplevcndbsystem"
5+
dns_label = "tfexvcndbsys"
66
}
77

88
resource "oci_core_subnet" "subnet" {
99
availability_domain = "${lookup(data.oci_identity_availability_domains.ADs.availability_domains[var.availability_domain - 1],"name")}"
1010
cidr_block = "10.1.20.0/24"
1111
display_name = "TFExampleSubnetDBSystem"
12-
dns_label = "tfexamplesubnetdbsystem"
12+
dns_label = "tfexsubdbsys"
1313
security_list_ids = ["${oci_core_virtual_network.vcn.default_security_list_id}"]
1414
compartment_id = "${var.compartment_ocid}"
1515
vcn_id = "${oci_core_virtual_network.vcn.id}"

docs/examples/db_systems/resources.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ resource "oci_database_db_system" "test_db_system" {
3434
license_model = "${var.license_model}"
3535
node_count = "${lookup(data.oci_database_db_system_shapes.test_db_system_shapes.db_system_shapes[0], "minimum_node_count")}"
3636

37-
defined_tags = "${map("example-tag-namespace-all.example-tag", "originalValue")}"
37+
#To use defined_tags, set the values below to an existing tag namespace, refer to the identity example on how to create tag namespaces
38+
#defined_tags = "${map("example-tag-namespace-all.example-tag", "originalValue")}"
3839

3940
freeform_tags = {
4041
"Department" = "Finance"

docs/examples/object_storage/bucket.tf

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,28 @@ resource "oci_objectstorage_bucket" "bucket1" {
99
access_type = "NoPublicAccess"
1010
}
1111

12+
resource "oci_objectstorage_object_lifecycle_policy" "lifecyclePolicy1" {
13+
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
14+
bucket = "tf-example-bucket"
15+
16+
#Optional
17+
rules {
18+
#Required
19+
action = "ARCHIVE"
20+
is_enabled = "true"
21+
name = "test-rule-1"
22+
time_amount = "10"
23+
time_unit = "DAYS"
24+
25+
#Optional
26+
object_name_filter {
27+
28+
#Optional
29+
inclusion_prefixes = ["my-test"]
30+
}
31+
}
32+
}
33+
1234
data "oci_objectstorage_bucket_summaries" "buckets1" {
1335
compartment_id = "${var.compartment_ocid}"
1436
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
@@ -22,3 +44,14 @@ data "oci_objectstorage_bucket_summaries" "buckets1" {
2244
output buckets {
2345
value = "${data.oci_objectstorage_bucket_summaries.buckets1.bucket_summaries}"
2446
}
47+
48+
data "oci_objectstorage_object_lifecycle_policy" "lifecyclePolicies1" {
49+
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
50+
bucket = "tf-example-bucket"
51+
52+
depends_on = ["oci_objectstorage_object_lifecycle_policy.lifecyclePolicy1"]
53+
}
54+
55+
output lifecyclePolicies1 {
56+
value = "${data.oci_objectstorage_object_lifecycle_policy.lifecyclePolicies1.rules}"
57+
}

docs/examples/object_storage/object.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ resource "oci_objectstorage_object" "source-object" {
2222
source = "index.html"
2323
}
2424

25+
resource "oci_objectstorage_object" "source-uri-object" {
26+
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
27+
bucket = "${oci_objectstorage_bucket.bucket1.name}"
28+
object = "copy_index.html"
29+
content_language = "en-US"
30+
content_type = "text/html"
31+
32+
source_uri_details {
33+
region = "${var.source_region}"
34+
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
35+
bucket = "${oci_objectstorage_bucket.bucket1.name}"
36+
object = "index.html"
37+
}
38+
}
39+
2540
data "oci_objectstorage_object_head" "object-head1" {
2641
namespace = "${data.oci_objectstorage_namespace.ns.namespace}"
2742
bucket = "${oci_objectstorage_bucket.bucket1.name}"

docs/examples/object_storage/provider.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ variable "region" {
1414
default = "us-ashburn-1"
1515
}
1616

17+
//the object can be created from the object data in the other region
18+
variable "source_region" {
19+
default = "us-ashburn-1"
20+
}
21+
1722
provider "oci" {
1823
region = "${var.region}"
1924
tenancy_ocid = "${var.tenancy_ocid}"

0 commit comments

Comments
 (0)