Skip to content

Commit 63c2d64

Browse files
authored
Releasing version 4.38.0
Releasing version 4.38.0
2 parents 1834b1a + d99bf4c commit 63c2d64

File tree

727 files changed

+5219
-297
lines changed

Some content is hidden

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

727 files changed

+5219
-297
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 4.38.0 (Unreleased)
2+
3+
### Added
4+
- Support for metastore integration added to `dataflow`
5+
- Support for Cross-Region Copy of Volume Group Backups in `core` added
6+
- Support for Network Bonding added to `ExaCS`
7+
- Support for ODSC - Model Store V2
8+
- Support for `oci_log_analytics_log_analytics_object_collection_rule` resource
9+
110
## 4.37.0 (July 28, 2021)
211

312
### Added

examples/database/adb/autonomous_database.tf

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,16 @@ resource "oci_database_autonomous_database" "autonomous_database" {
4242
}
4343

4444
resource "oci_database_autonomous_database" "test_autonomous_database" {
45-
admin_password = random_string.autonomous_database_admin_password.result
46-
compartment_id = var.compartment_ocid
47-
cpu_core_count = "1"
48-
data_storage_size_in_tbs = "1"
49-
db_name = "adbdb11f"
50-
db_version = "19c"
51-
db_workload = "AJD"
52-
license_model = "LICENSE_INCLUDED"
53-
is_free_tier = "false"
45+
admin_password = random_string.autonomous_database_admin_password.result
46+
compartment_id = var.compartment_ocid
47+
cpu_core_count = "1"
48+
data_storage_size_in_tbs = "1"
49+
db_name = "adbdb11f"
50+
db_version = "19c"
51+
db_workload = "AJD"
52+
license_model = "LICENSE_INCLUDED"
53+
is_free_tier = "false"
54+
autonomous_maintenance_schedule_type = var.autonomous_database_autonomous_maintenance_schedule_type
5455
}
5556

5657
resource "oci_database_autonomous_database" "test_autonomous_database_apex" {

examples/database/adb/variables.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ variable "autonomous_database_is_dedicated" {
4949
default = false
5050
}
5151

52+
variable "autonomous_database_autonomous_maintenance_schedule_type" {
53+
default = "EARLY"
54+
}

examples/dataflow/main.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ variable "application_file_uri" {
4747
variable "application_archive_uri" {
4848
}
4949

50+
variable "metastore_id" {
51+
}
52+
5053
variable "dataflow_logs_bucket_uri" {
5154
}
5255

@@ -96,6 +99,7 @@ resource "oci_dataflow_application" "tf_application" {
9699
#}
97100

98101
#warehouse_bucket_uri = var.application_warehouse_bucket_uri}"
102+
metastore_id = var.metastore_id
99103
}
100104

101105
data "oci_dataflow_applications" "tf_applications" {
@@ -192,6 +196,7 @@ resource "oci_dataflow_application" "test_application" {
192196
private_endpoint_id = oci_dataflow_private_endpoint.test_private_endpoint.id
193197
spark_version = "2.4"
194198
warehouse_bucket_uri = var.dataflow_warehouse_bucket_uri
199+
metastore_id = var.metastore_id
195200
}
196201

197202
resource "oci_dataflow_invoke_run" "test_invoke_run" {
@@ -214,7 +219,7 @@ resource "oci_dataflow_application" "test_application_submit" {
214219
#Optional
215220
archive_uri = var.application_archive_uri
216221
private_endpoint_id = oci_dataflow_private_endpoint.test_private_endpoint.id
217-
222+
metastore_id = var.metastore_id
218223
}
219224

220225
resource "oci_dataflow_invoke_run" "test_invokey_run_submit" {
@@ -226,6 +231,7 @@ resource "oci_dataflow_invoke_run" "test_invokey_run_submit" {
226231
archive_uri = var.application_archive_uri
227232
display_name = "test_wordcount_run_submit"
228233
spark_version = "2.4"
234+
metastore_id = var.metastore_id
229235
}
230236

231237
data "oci_dataflow_private_endpoints" "test_private_endpoints" {

examples/log_analytics/entity.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77

88
variable "managed_agent_id" {}
99

10-
# Fetch namespace name from object store GET /n
11-
data "oci_objectstorage_namespace" "ns" {
12-
compartment_id = var.compartment_ocid
13-
}
14-
1510
# Sample create entity with required parameters.
1611
resource "oci_log_analytics_log_analytics_entity" "entityRequired" {
1712
compartment_id = var.compartment_ocid

examples/log_analytics/log_groups.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
* This example shows how to manage log analytics log groups
66
*/
77

8-
# Fetch namespace name from object store GET /n
9-
data "oci_objectstorage_namespace" "ns" {
10-
compartment_id = var.compartment_ocid
11-
}
12-
138
# Create a log group with required parameters
149
resource "oci_log_analytics_log_analytics_log_group" "logGroupRequired" {
1510
compartment_id = var.compartment_ocid

examples/log_analytics/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ resource "oci_log_analytics_namespace" "test_namespace" {
3535
compartment_id = var.tenancy_ocid
3636
}
3737

38+
# Fetch namespace name from object store GET /n
39+
data "oci_objectstorage_namespace" "ns" {
40+
compartment_id = var.compartment_ocid
41+
}
42+
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
/*
5+
* This example shows how to manage log analytics object collection rule resource
6+
*/
7+
8+
variable "log_analytics_log_group_id" {}
9+
variable "log_analytics_entity_id" {}
10+
variable "object_collection_rule_bucket_name" {}
11+
12+
variable "object_collection_rule_name" {
13+
default = "tf-obj-coll-example-opt"
14+
}
15+
variable "object_collection_rule_freeform_tags" {
16+
default = { "servicegroup" = "test", "Dept" = "Devops" }
17+
}
18+
variable "object_collection_rule_log_source_name" {
19+
default = "LinuxSyslogSource"
20+
}
21+
variable "object_collection_rule_description" {
22+
default = "Object Collection Rule with optional parameters"
23+
}
24+
variable "object_collection_rule_collection_type" {
25+
default = "HISTORIC"
26+
}
27+
variable "object_collection_rule_poll_since" {
28+
default = "2020-04-01T00:00:00.000Z"
29+
}
30+
variable "object_collection_rule_poll_till" {
31+
default = "2021-04-01T00:00:00.000Z"
32+
}
33+
variable "object_collection_rule_char_encoding" {
34+
default = "utf-8"
35+
}
36+
variable "object_collection_rule_log_source_override_match_value" {
37+
default = "db"
38+
}
39+
variable "object_collection_rule_log_source_override_property_value" {
40+
default = "DBAuditLogSource"
41+
}
42+
variable "object_collection_rule_char_encoding_override_match_value" {
43+
default = "db"
44+
}
45+
variable "object_collection_rule_char_encoding_override_property_value" {
46+
default = "utf-16"
47+
}
48+
49+
# Create a object collection rule with required parameters
50+
resource "oci_log_analytics_log_analytics_object_collection_rule" "objectCollectionRuleRequired" {
51+
compartment_id = var.compartment_ocid
52+
namespace = data.oci_objectstorage_namespace.ns.namespace
53+
name = "tf-obj-coll-example-req"
54+
log_group_id = var.log_analytics_log_group_id
55+
log_source_name = "LinuxSyslogSource"
56+
os_bucket_name = var.object_collection_rule_bucket_name
57+
os_namespace = data.oci_objectstorage_namespace.ns.namespace
58+
}
59+
60+
# Get details of above created object collection rule with required parameters
61+
data "oci_log_analytics_log_analytics_object_collection_rule" "objectCollectionRuleRequiredDetails" {
62+
namespace = data.oci_objectstorage_namespace.ns.namespace
63+
log_analytics_object_collection_rule_id = oci_log_analytics_log_analytics_object_collection_rule.objectCollectionRuleRequired.id
64+
}
65+
66+
# Create a object collection rule with optional parameters
67+
resource "oci_log_analytics_log_analytics_object_collection_rule" "objectCollectionRuleOptional" {
68+
compartment_id = var.compartment_ocid
69+
namespace = data.oci_objectstorage_namespace.ns.namespace
70+
name = var.object_collection_rule_name
71+
log_group_id = var.log_analytics_log_group_id
72+
log_source_name = var.object_collection_rule_log_source_name
73+
os_bucket_name = var.object_collection_rule_bucket_name
74+
os_namespace = data.oci_objectstorage_namespace.ns.namespace
75+
description = var.object_collection_rule_description
76+
collection_type = var.object_collection_rule_collection_type
77+
poll_since = var.object_collection_rule_poll_since
78+
poll_till = var.object_collection_rule_poll_till
79+
char_encoding = var.object_collection_rule_char_encoding
80+
freeform_tags = var.object_collection_rule_freeform_tags
81+
overrides {
82+
match_type = "contains"
83+
match_value = var.object_collection_rule_char_encoding_override_match_value
84+
property_name = "charEncoding"
85+
property_value = var.object_collection_rule_char_encoding_override_property_value
86+
}
87+
overrides {
88+
match_type = "contains"
89+
match_value = var.object_collection_rule_log_source_override_match_value
90+
property_name = "logSourceName"
91+
property_value = var.object_collection_rule_log_source_override_property_value
92+
}
93+
}
94+
95+
# Get details of above created object collection rule with optional parameters
96+
data "oci_log_analytics_log_analytics_object_collection_rule" "objectCollectionRuleOptionalDetails" {
97+
namespace = data.oci_objectstorage_namespace.ns.namespace
98+
log_analytics_object_collection_rule_id = oci_log_analytics_log_analytics_object_collection_rule.objectCollectionRuleOptional.id
99+
}
100+
101+
# Get the list of object collection rules in a compartment
102+
data "oci_log_analytics_log_analytics_object_collection_rules" "objectCollectionRulessList" {
103+
compartment_id = var.compartment_ocid
104+
namespace = data.oci_objectstorage_namespace.ns.namespace
105+
}

examples/storage/block/volume_backup/volume_backup.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ variable "private_key_path" {
1717
}
1818

1919
variable "region" {
20+
// Define the region the destination volume backup copy will be created in
21+
2022
}
2123

2224
variable "source_region" {
25+
// Define the region the source volume backup will be created in
2326
}
2427

2528
variable "source_volume_backup_id" {
29+
// Define a source volume backup Id to copy when using resource oci_core_volume_backup.test_volume_backup_cross_region_sourced
2630
}
2731

2832
variable "volume_backup_defined_tags_value" {

examples/storage/block/volume_group/block.tf renamed to examples/storage/block/volume_group/volume_group.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ resource "oci_core_volume_group" "test_volume_group_from_vol_ids" {
105105
type = "volumeIds"
106106

107107
// Mix of named volume and splatted multiple volumes
108-
volume_ids = concat([oci_core_volume.t.id], oci_core_volume.test_volume.*.id)
108+
volume_ids = concat([oci_core_volume.t.id], oci_core_volume.test_volume.*.id)
109109
}
110110

111111
#Optional
@@ -227,4 +227,3 @@ data "oci_core_volume_group_backups" "test_volume_group_backups" {
227227
output "volumeGroupBackups" {
228228
value = data.oci_core_volume_group_backups.test_volume_group_backups.volume_group_backups
229229
}
230-

0 commit comments

Comments
 (0)