Skip to content

Commit 3199387

Browse files
Merge pull request #1659 from oracle/release_gh
Releasing version 4.92.0
2 parents 777e1a5 + 060deca commit 3199387

File tree

555 files changed

+12830
-2741
lines changed

Some content is hidden

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

555 files changed

+12830
-2741
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions

examples/README.md

Lines changed: 2 additions & 0 deletions
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
// Copyright (c) 2017, 2021, 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_id" {}
10+
11+
variable "data_source_access_level" {
12+
default = "ACCESSIBLE"
13+
}
14+
15+
variable "data_source_compartment_id_in_subtree" {
16+
default = true
17+
}
18+
19+
variable "data_source_defined_tags_value" {
20+
default = "value"
21+
}
22+
23+
variable "data_source_freeform_tags" {
24+
default = { "bar-key" = "value" }
25+
}
26+
27+
//Has to be unique
28+
variable "data_source_display_name" {
29+
default = "displayName"
30+
}
31+
32+
variable "data_source_data_source_feed_provider" {
33+
default = "LOGGINGQUERY"
34+
}
35+
36+
//Acceptable values come from LifecycleStateEnum
37+
variable "data_source_state" {
38+
default = "ACTIVE"
39+
}
40+
41+
variable "data_source_data_source_details_logging_query_type" {
42+
default = "INSIGHT"
43+
}
44+
45+
variable "data_source_data_source_details_operator" {
46+
default = "GREATERTHANEQUALTO"
47+
}
48+
49+
variable "data_source_data_source_details_additional_entities_count" {
50+
default = "2"
51+
}
52+
53+
variable "data_source_data_source_details_interval_in_minutes" {
54+
default = "10"
55+
}
56+
57+
variable "data_source_data_source_details_threshold" {
58+
default = "0"
59+
}
60+
61+
variable "data_source_data_source_details_query" {
62+
default = "search \"ocid1.tenancy.oc1..aaaaaaaaqoggzsjut2u64wqliyd4eyd3dl4ipsu26lgqx4bihofnve5li5hq\" | isNotNull(data.eventName) | limit 1 | select data.eventName as cgkey01, data.message as cg01, data.resourceId as cg02"
63+
}
64+
65+
variable "data_source_data_source_details_regions" {
66+
default = ["us-phoenix-1"]
67+
}
68+
69+
variable "data_source_data_source_details_logging_query_details_key_entities_count" {
70+
default = "1"
71+
}
72+
73+
variable "data_source_data_source_details_query_start_time_start_policy_type" {
74+
default = "NO_DELAY_START_POLICY"
75+
}
76+
77+
provider "oci" {
78+
tenancy_ocid = var.tenancy_ocid
79+
user_ocid = var.user_ocid
80+
fingerprint = var.fingerprint
81+
private_key_path = var.private_key_path
82+
region = var.region
83+
}
84+
85+
data "oci_cloud_guard_data_sources" "test_data_sources" {
86+
#Required
87+
compartment_id = var.tenancy_ocid
88+
89+
#Optional
90+
state = var.data_source_state
91+
display_name = var.data_source_display_name
92+
}
93+
94+
resource "oci_cloud_guard_data_source" "test_data_source" {
95+
#Required
96+
compartment_id = var.compartment_id
97+
display_name = var.data_source_display_name
98+
data_source_feed_provider = var.data_source_data_source_feed_provider
99+
100+
#Required
101+
data_source_details {
102+
data_source_feed_provider = var.data_source_data_source_feed_provider
103+
additional_entities_count = var.data_source_data_source_details_additional_entities_count
104+
interval_in_minutes = var.data_source_data_source_details_interval_in_minutes
105+
logging_query_type = var.data_source_data_source_details_logging_query_type
106+
operator = var.data_source_data_source_details_operator
107+
query = var.data_source_data_source_details_query
108+
regions = var.data_source_data_source_details_regions
109+
threshold = var.data_source_data_source_details_threshold
110+
111+
logging_query_details {
112+
logging_query_type = var.data_source_data_source_details_logging_query_type
113+
key_entities_count = var.data_source_data_source_details_logging_query_details_key_entities_count
114+
}
115+
116+
query_start_time {
117+
start_policy_type = var.data_source_data_source_details_query_start_time_start_policy_type
118+
}
119+
}
120+
121+
#Optional
122+
defined_tags = { "example-tag-namespace-all.example-tag" = var.data_source_defined_tags_value }
123+
freeform_tags = var.data_source_freeform_tags
124+
}

examples/cloudguard/security_zone/security_zone.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,9 @@ resource "oci_cloud_guard_security_zone" "test_security_zone" {
7676

7777
#Optional
7878
description = "${var.security_zone_description}"
79+
80+
//Added only because we are testing this in a splat-disabled env
81+
lifecycle {
82+
ignore_changes = [system_tags]
83+
}
7984
}

examples/cloudguard/security_zone_recipe/security_zone_recipe.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,8 @@ resource "oci_cloud_guard_security_recipe" "test_security_recipe" {
6666
#Optional
6767
description = "${var.security_recipe_description}"
6868

69+
//Added only because we are testing this in a splat-disabled env
70+
lifecycle {
71+
ignore_changes = [system_tags]
72+
}
6973
}
Lines changed: 6 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
variable "tenancy_ocid" {
2+
}
3+
4+
variable "user_ocid" {
5+
}
6+
7+
variable "fingerprint" {
8+
}
9+
10+
variable "private_key_path" {
11+
}
12+
13+
variable "compartment_ocid" {
14+
}
15+
16+
variable "region" {
17+
}
18+
19+
variable "registry_display_name" {
20+
default = "displayName"
21+
}
22+
23+
variable "registry_description" {
24+
default = "description"
25+
}
26+
27+
variable "registry_freeform_tags" {
28+
default = {
29+
"Department" = "Finance"
30+
}
31+
}
32+
33+
variable "registry_state" {
34+
default = "ACTIVE"
35+
}
36+
37+
provider "oci" {
38+
region = var.region
39+
tenancy_ocid = var.tenancy_ocid
40+
user_ocid = var.user_ocid
41+
fingerprint = var.fingerprint
42+
private_key_path = var.private_key_path
43+
}
44+
45+
resource "oci_data_connectivity_registry" "test_registry" {
46+
#Required
47+
display_name = var.registry_display_name
48+
compartment_id = var.compartment_ocid
49+
50+
#Optional
51+
description = var.registry_description
52+
freeform_tags = var.registry_freeform_tags
53+
54+
lifecycle {
55+
ignore_changes = [
56+
defined_tags]
57+
}
58+
}
59+
60+
data "oci_data_connectivity_registries" "test_registries" {
61+
#Required
62+
compartment_id = var.compartment_ocid
63+
64+
#Optional
65+
state = var.registry_state
66+
}
67+
68+
data "oci_data_connectivity_registry" "test_registry" {
69+
#Required
70+
registry_id = oci_data_connectivity_registry.test_registry.id
71+
}

examples/databasemanagement/main.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ variable "managed_database_optimizer_statistics_collection_operation_task_type"
188188
default = "ALL"
189189
}
190190

191+
variable "managed_database_preferred_credential_credential_name" {
192+
default = "credentialName"
193+
}
194+
191195
provider "oci" {
192196
tenancy_ocid = var.tenancy_ocid
193197
user_ocid = var.user_ocid
@@ -453,4 +457,15 @@ data "oci_database_management_managed_database_optimizer_statistics_collection_o
453457
data "oci_database_management_managed_database_table_statistics" "test_managed_database_table_statistics" {
454458
#Required
455459
managed_database_id = oci_database_management_managed_database.test_managed_database.id
460+
}
461+
462+
data "oci_database_management_managed_database_preferred_credentials" "test_managed_database_preferred_credentials" {
463+
#Required
464+
managed_database_id = oci_database_management_managed_database.test_managed_database.id
465+
}
466+
467+
data "oci_database_management_managed_database_preferred_credential" "test_managed_database_preferred_credential" {
468+
#Required
469+
credential_name = var.managed_database_preferred_credential_credential_name
470+
managed_database_id = oci_database_management_managed_database.test_managed_database.id
456471
}

examples/monitoring/alarms/alarms.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ variable "tag_namespace_name" {
129129
default = "testexamples-tag-namespace"
130130
}
131131

132+
variable "is_notifications_per_metric_dimension_enabled" {
133+
default = false
134+
}
135+
132136
provider "oci" {
133137
tenancy_ocid = var.tenancy_ocid
134138
user_ocid = var.user_ocid
@@ -167,6 +171,7 @@ resource "oci_monitoring_alarm" "test_alarm" {
167171
repeat_notification_duration = var.alarm_repeat_notification_duration
168172
resolution = var.alarm_resolution
169173
resource_group = var.alarm_resource_group
174+
is_notifications_per_metric_dimension_enabled = var.is_notifications_per_metric_dimension_enabled
170175

171176
suppression {
172177
#Required

0 commit comments

Comments
 (0)