Skip to content

Commit 7b0ecc4

Browse files
authored
Merge pull request #1253 from terraform-providers/release_merge_v4.7.0
Candidate for release_v4.7.0
2 parents 57245e4 + 5331fc5 commit 7b0ecc4

File tree

6,699 files changed

+74838
-53392
lines changed

Some content is hidden

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

6,699 files changed

+74838
-53392
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
1+
## 4.7.0 (Unreleased)
2+
3+
### Added
4+
- Update document for service `audit`
5+
- Support for Flexible Load Balancer
6+
- Support for KMS filter listKeys based on KeyShape added
7+
- Support for ADBS Apex added
8+
- Support for Platform Integration: KMS Integration-Exadata (Phase 1)
9+
- Support for Management Dashboards Import
10+
11+
### Deprecated
12+
- Data source `oci_database_autonomous_database_wallet` is being deprecated in favor of resource `oci_database_autonomous_database_wallet`
13+
114
## 4.6.0 (December 09, 2020)
215

316
### Added
417
- Support for `metadata` field added to `identity_provider` datasources in `identity` service
518
- Support for vanity hostnames in `oci_integration_integration_instance`
619
- Support for Exacc infrastructure patching operation
20+
- Support for Flex components added in database
721

822
## 4.5.0 (December 02, 2020)
923

examples/database/adb/autonomous_data_warehouse.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ resource "oci_database_autonomous_database" "autonomous_data_warehouse" {
2323
compartment_id = var.compartment_ocid
2424
cpu_core_count = "1"
2525
data_storage_size_in_tbs = "1"
26-
db_name = "adbdw1"
26+
db_name = "adbdw1f"
2727

2828
#Optional
2929
//If a db version is passed, it must be valid

examples/database/adb/autonomous_data_warehouse_wallet.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ resource "random_string" "autonomous_data_warehouse_wallet_password" {
66
special = true
77
}
88

9-
data "oci_database_autonomous_database_wallet" "autonomous_data_warehouse_wallet" {
9+
resource "oci_database_autonomous_database_wallet" "autonomous_data_warehouse_wallet" {
1010
autonomous_database_id = oci_database_autonomous_database.autonomous_data_warehouse.id
1111
password = random_string.autonomous_data_warehouse_wallet_password.result
1212
base64_encode_content = "true"
1313
}
1414

1515
resource "local_file" "autonomous_data_warehouse_wallet_file" {
16-
content_base64 = data.oci_database_autonomous_database_wallet.autonomous_data_warehouse_wallet.content
16+
content_base64 = oci_database_autonomous_database_wallet.autonomous_data_warehouse_wallet.content
1717
filename = "${path.module}/autonomous_data_warehouse_wallet.zip"
1818
}
1919

examples/database/adb/autonomous_database.tf

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "oci_database_autonomous_database" "autonomous_database" {
2828
compartment_id = var.compartment_ocid
2929
cpu_core_count = "1"
3030
data_storage_size_in_tbs = "1"
31-
db_name = "adbdb1"
31+
db_name = "adbdb1f"
3232

3333
#Optional
3434
db_version = data.oci_database_autonomous_db_versions.test_autonomous_db_versions.autonomous_db_versions[0].version
@@ -46,19 +46,31 @@ resource "oci_database_autonomous_database" "test_autonomous_database" {
4646
compartment_id = var.compartment_ocid
4747
cpu_core_count = "1"
4848
data_storage_size_in_tbs = "1"
49-
db_name = "adbdb11"
49+
db_name = "adbdb11f"
5050
db_version = "19c"
5151
db_workload = "AJD"
5252
license_model = "LICENSE_INCLUDED"
5353
is_free_tier = "false"
5454
}
5555

56+
resource "oci_database_autonomous_database" "test_autonomous_database_apex" {
57+
admin_password = random_string.autonomous_database_admin_password.result
58+
compartment_id = var.compartment_ocid
59+
cpu_core_count = "1"
60+
data_storage_size_in_tbs = "1"
61+
db_name = "adbapex"
62+
db_version = "19c"
63+
db_workload = "APEX"
64+
license_model = "LICENSE_INCLUDED"
65+
is_free_tier = "false"
66+
}
67+
5668
resource "oci_database_autonomous_database" "test_autonomous_database_actions" {
5769
admin_password = random_string.autonomous_database_admin_password.result
5870
compartment_id = var.compartment_ocid
5971
cpu_core_count = "1"
6072
data_storage_size_in_tbs = "1"
61-
db_name = "adbdb111"
73+
db_name = "adbdb11ff"
6274
db_version = "19c"
6375
db_workload = "AJD"
6476
license_model = "LICENSE_INCLUDED"

examples/database/adb/autonomous_database_wallet.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ resource "random_string" "autonomous_database_wallet_password" {
66
special = true
77
}
88

9-
data "oci_database_autonomous_database_wallet" "autonomous_database_wallet" {
9+
resource "oci_database_autonomous_database_wallet" "autonomous_database_wallet" {
1010
autonomous_database_id = oci_database_autonomous_database.autonomous_database.id
1111
password = random_string.autonomous_database_wallet_password.result
1212
base64_encode_content = "true"
1313
}
1414

1515
resource "local_file" "autonomous_database_wallet_file" {
16-
content_base64 = data.oci_database_autonomous_database_wallet.autonomous_database_wallet.content
16+
content_base64 = oci_database_autonomous_database_wallet.autonomous_database_wallet.content
1717
filename = "${path.module}/autonomous_database_wallet.zip"
1818
}
1919

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "tenancy_ocid" {}
5+
variable "user_ocid" {}
6+
variable "fingerprint" {}
7+
variable "private_key_path" {}
8+
variable "region" {}
9+
variable "compartment_ocid" {}
10+
11+
variable "flex_component_name" {
12+
default = "name"
13+
}
14+
15+
provider "oci" {
16+
tenancy_ocid = var.tenancy_ocid
17+
user_ocid = var.user_ocid
18+
fingerprint = var.fingerprint
19+
private_key_path = var.private_key_path
20+
region = var.region
21+
}
22+
23+
data "oci_database_flex_components" "test_flex_components" {
24+
#Required
25+
compartment_id = "${var.compartment_ocid}"
26+
27+
#Optional
28+
name = var.flex_component_name
29+
}

examples/load_balancer/lb_full/lb_full.tf

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ resource "oci_core_route_table" "routetable1" {
129129
resource "oci_core_public_ip" "test_reserved_ip" {
130130
compartment_id = "${var.compartment_ocid}"
131131
lifetime = "RESERVED"
132+
133+
lifecycle {
134+
ignore_changes = [private_ip_id]
135+
}
132136
}
133137

134138
resource "oci_core_security_list" "securitylist1" {
@@ -263,6 +267,33 @@ resource "oci_load_balancer" "lb2" {
263267
display_name = "lb1"
264268
}
265269

270+
271+
variable "load_balancer_shape_details_maximum_bandwidth_in_mbps" {
272+
default = 100
273+
}
274+
275+
variable "load_balancer_shape_details_minimum_bandwidth_in_mbps" {
276+
default = 10
277+
}
278+
279+
resource "oci_load_balancer" "flex_lb" {
280+
shape = "flexible"
281+
compartment_id = var.compartment_ocid
282+
283+
subnet_ids = [
284+
oci_core_subnet.subnet1.id,
285+
oci_core_subnet.subnet2.id,
286+
]
287+
288+
shape_details {
289+
#Required
290+
maximum_bandwidth_in_mbps = var.load_balancer_shape_details_maximum_bandwidth_in_mbps
291+
minimum_bandwidth_in_mbps = var.load_balancer_shape_details_minimum_bandwidth_in_mbps
292+
}
293+
294+
display_name = "flex_lb"
295+
}
296+
266297
resource "oci_load_balancer_backend_set" "lb-bes1" {
267298
name = "lb-bes1"
268299
load_balancer_id = oci_load_balancer.lb1.id
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
provider "oci" {
5+
region = var.region
6+
tenancy_ocid = var.tenancy_ocid
7+
user_ocid = var.user_ocid
8+
fingerprint = var.fingerprint
9+
private_key_path = var.private_key_path
10+
}
11+
12+
data "oci_management_dashboard_management_dashboards_export" "test_export" {
13+
export_dashboard_id = "{\"dashboardIds\":[\"ocid1.managementdashboard.dev..aaaaaaaazrrxainoaive7adj77uqejld45vch7zkoqrlh5fwv2_dummy_ocids\"]}"
14+
}
15+
16+
// example showing import_details usage
17+
resource "oci_management_dashboard_management_dashboards_import" "test_import_via_tf_variable" {
18+
import_details = var.test_import_details
19+
}
20+
21+
// example showing import_details_file usage, sample.json content is same as var.test_import_details
22+
resource "oci_management_dashboard_management_dashboards_import" "test_import_via_file" {
23+
import_details_file = "sample.json"
24+
}
25+
26+
output "test_export_data_all" {
27+
value = data.oci_management_dashboard_management_dashboards_export.test_export
28+
}
29+
30+
output "test_export_data_dashboards" {
31+
value = data.oci_management_dashboard_management_dashboards_export.test_export.export_details
32+
}
33+

0 commit comments

Comments
 (0)