Skip to content

Commit db87735

Browse files
authored
feat: Removed the enable_platform_logs input. Platform logging should be controlled using the logs_routing_tenant_regions input (#274)
1 parent 931f98a commit db87735

File tree

7 files changed

+2
-18
lines changed

7 files changed

+2
-18
lines changed

.secrets.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "go.sum|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2023-12-12T06:39:44Z",
6+
"generated_at": "2023-12-13T06:39:44Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"

ibm_catalog.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,6 @@
191191
}
192192
]
193193
},
194-
{
195-
"key": "enable_platform_logs"
196-
},
197194
{
198195
"key": "logs_routing_tenant_regions"
199196
},

solutions/instances/catalogValidationValues.json.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"resource_group_name": $PREFIX,
44
"existing_kms_instance_crn": $HPCS_US_SOUTH_CRN,
55
"region": "us-south",
6-
"enable_platform_logs": false,
76
"enable_platform_metrics": false,
87
"prefix": $PREFIX
98
}

solutions/instances/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ module "cloud_monitoring_crn_parser" {
245245
module "observability_instance" {
246246
depends_on = [time_sleep.wait_for_atracker_cos_authorization_policy]
247247
source = "terraform-ibm-modules/observability-instances/ibm"
248-
version = "3.4.2"
248+
version = "3.4.3"
249249
region = var.region
250250
resource_group_id = module.resource_group.resource_group_id
251251

@@ -261,7 +261,6 @@ module "observability_instance" {
261261
cloud_logs_provision = var.cloud_logs_provision
262262
cloud_logs_instance_name = local.cloud_logs_instance_name
263263
cloud_logs_plan = "standard"
264-
enable_platform_logs = var.enable_platform_logs
265264
cloud_logs_access_tags = var.cloud_logs_access_tags
266265
cloud_logs_tags = var.cloud_logs_tags
267266
cloud_logs_service_endpoints = "public-and-private"

solutions/instances/variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,6 @@ variable "skip_logs_routing_auth_policy" {
143143
default = false
144144
}
145145

146-
variable "enable_platform_logs" {
147-
type = bool
148-
description = "Setting this to true will create a tenant in the same region that the Cloud Logs instance is provisioned to enable platform logs for that region. To send platform logs from other regions, you can explicitially specify a list of regions using the `logs_routing_tenant_regions` input. NOTE: You can only have 1 tenant per region in an account."
149-
default = true
150-
}
151-
152146
variable "logs_routing_tenant_regions" {
153147
type = list(any)
154148
default = []

tests/pr_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ func TestInstancesInSchematics(t *testing.T) {
8181
{Name: "cos_region", Value: region, DataType: "string"},
8282
{Name: "cos_instance_tags", Value: options.Tags, DataType: "list(string)"},
8383
{Name: "cloud_logs_tags", Value: options.Tags, DataType: "list(string)"},
84-
{Name: "enable_platform_logs", Value: false, DataType: "bool"},
8584
{Name: "cloud_monitoring_tags", Value: options.Tags, DataType: "list(string)"},
8685
{Name: "enable_platform_metrics", Value: false, DataType: "bool"},
8786
{Name: "cos_instance_access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"},
@@ -114,7 +113,6 @@ func TestRunUpgradeSolutionInstances(t *testing.T) {
114113
"kms_endpoint_type": "public",
115114
"provider_visibility": "public",
116115
"management_endpoint_type_for_bucket": "public",
117-
"enable_platform_logs": "false",
118116
"enable_platform_metrics": "false",
119117
"region": options.Region,
120118
"cloud_logs_policies": []map[string]interface{}{
@@ -311,7 +309,6 @@ func TestRunExistingResourcesInstancesSchematics(t *testing.T) {
311309
{Name: "management_endpoint_type_for_bucket", Value: "private", DataType: "string"},
312310
{Name: "provider_visibility", Value: "public", DataType: "string"},
313311
{Name: "enable_platform_metrics", Value: false, DataType: "bool"},
314-
{Name: "enable_platform_logs", Value: false, DataType: "bool"},
315312
{Name: "cloud_logs_existing_en_instances", Value: cloud_logs_existing_en_instances, DataType: "list(object)"},
316313
{Name: "cloud_logs_policies", Value: cloud_logs_policies, DataType: "list(object)"},
317314
{Name: "existing_cos_instance_crn", Value: terraform.Output(t, existingTerraformOptions, "cos_crn"), DataType: "string"},
@@ -346,7 +343,6 @@ func TestRunExistingResourcesInstancesSchematics(t *testing.T) {
346343
{Name: "existing_cos_instance_crn", Value: terraform.Output(t, existingTerraformOptions, "cos_crn"), DataType: "string"},
347344
{Name: "management_endpoint_type_for_bucket", Value: "private", DataType: "string"},
348345
{Name: "enable_platform_metrics", Value: false, DataType: "bool"},
349-
{Name: "enable_platform_logs", Value: false, DataType: "bool"},
350346
{Name: "existing_kms_instance_crn", Value: permanentResources["hpcs_south_crn"], DataType: "string"},
351347
{Name: "existing_cos_kms_key_crn", Value: permanentResources["hpcs_south_root_key_crn"], DataType: "string"},
352348
}

tests/resources/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ module "observability_instances" {
8989
cloud_monitoring_instance_name = "${var.prefix}-cloud-monitoring"
9090
cloud_logs_instance_name = "${var.prefix}-cloud-logs"
9191
enable_platform_metrics = false
92-
enable_platform_logs = false
9392
cloud_logs_tags = var.resource_tags
9493
cloud_logs_data_storage = {
9594
# logs and metrics buckets must be different

0 commit comments

Comments
 (0)