Skip to content

Commit f27ccdc

Browse files
alex-reiffocofaigh
andauthored
feat: enable_platform_metrics input now defaults to false by default. management_endpoint_type_for_bucket now defaults to direct by default. (#442)
Co-authored-by: Conall Ó Cofaigh <[email protected]>
1 parent 60660d1 commit f27ccdc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

solutions/instances/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ variable "cloud_monitoring_tags" {
283283
variable "enable_platform_metrics" {
284284
type = bool
285285
description = "When set to `true`, the IBM Cloud Monitoring instance collects the platform metrics."
286-
default = true
286+
default = false
287287
}
288288

289289
########################################################################################################################
@@ -500,7 +500,7 @@ variable "skip_at_cos_auth_policy" {
500500
variable "management_endpoint_type_for_bucket" {
501501
description = "The type of endpoint for the IBM Terraform provider to use to manage Cloud Object Storage buckets (`public`, `private`, or `direct`). If you are using a private endpoint, make sure that you enable virtual routing and forwarding (VRF) in your account, and that the Terraform runtime can access the IBM Cloud Private network."
502502
type = string
503-
default = "private"
503+
default = "direct"
504504
validation {
505505
condition = contains(["public", "private", "direct"], var.management_endpoint_type_for_bucket)
506506
error_message = "The specified `management_endpoint_type_for_bucket` is not valid. Specify a valid type of endpoint for the IBM Terraform provider to use to manage Cloud Object Storage buckets."

tests/pr_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func TestRunExistingResourcesInstancesSchematics(t *testing.T) {
321321
{Name: "existing_cloud_logs_metrics_bucket_endpoint", Value: terraform.Output(t, existingTerraformOptions, "metrics_bucket_endpoint"), DataType: "string"},
322322
{Name: "existing_en_instance_crn", Value: terraform.Output(t, existingTerraformOptions, "en_crn_1"), DataType: "string"},
323323
{Name: "prefix", Value: options.Prefix, DataType: "string"},
324-
{Name: "management_endpoint_type_for_bucket", Value: "private", DataType: "string"},
324+
{Name: "management_endpoint_type_for_bucket", Value: "direct", DataType: "string"},
325325
{Name: "provider_visibility", Value: "public", DataType: "string"},
326326
{Name: "enable_platform_metrics", Value: false, DataType: "bool"},
327327
{Name: "cloud_logs_existing_en_instances", Value: cloud_logs_existing_en_instances, DataType: "list(object)"},
@@ -358,7 +358,7 @@ func TestRunExistingResourcesInstancesSchematics(t *testing.T) {
358358
{Name: "resource_group_name", Value: terraform.Output(t, existingTerraformOptions, "resource_group_name"), DataType: "string"},
359359
{Name: "kms_endpoint_type", Value: "private", DataType: "string"},
360360
{Name: "existing_cos_instance_crn", Value: terraform.Output(t, existingTerraformOptions, "cos_crn"), DataType: "string"},
361-
{Name: "management_endpoint_type_for_bucket", Value: "private", DataType: "string"},
361+
{Name: "management_endpoint_type_for_bucket", Value: "direct", DataType: "string"},
362362
{Name: "enable_platform_metrics", Value: false, DataType: "bool"},
363363
{Name: "existing_kms_instance_crn", Value: permanentResources["hpcs_south_crn"], DataType: "string"},
364364
{Name: "existing_cos_kms_key_crn", Value: permanentResources["hpcs_south_root_key_crn"], DataType: "string"},

0 commit comments

Comments
 (0)