Skip to content

Commit c9423a5

Browse files
authored
fix: updated the region selector to include all IBM Cloud regions (#197)
1 parent 0de73b2 commit c9423a5

File tree

3 files changed

+30
-63
lines changed

3 files changed

+30
-63
lines changed

ibm_catalog.json

Lines changed: 28 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"description": "Configures the IBM Cloud Monitoring instance and logging agents."
4545
},
4646
{
47-
4847
"title": "Configures IBM Cloud Activity Tracker Event Routing",
4948
"description": "Configures an IBM Cloud Activity Tracker route with a Cloud Object Storage, Log Analysis and Cloud Logs target."
5049
}
@@ -130,42 +129,18 @@
130129
"key": "resource_group_name"
131130
},
132131
{
133-
"key": "region",
134-
"required": true,
135-
"options": [
136-
{
137-
"displayname": "Dallas (us-south)",
138-
"value": "us-south"
139-
},
140-
{
141-
"displayname": "Frankfurt (eu-de)",
142-
"value": "eu-de"
143-
},
144-
{
145-
"displayname": "London (eu-gb)",
146-
"value": "eu-gb"
147-
},
148-
{
149-
"displayname": "Madrid (eu-es)",
150-
"value": "eu-es"
151-
},
152-
{
153-
"displayname": "Osaka (jp-osa)",
154-
"value": "jp-osa"
155-
},
156-
{
157-
"displayname": "Sydney (au-syd)",
158-
"value": "au-syd"
159-
},
160-
{
161-
"displayname": "Tokyo (jp-tok)",
162-
"value": "jp-tok"
163-
},
164-
{
165-
"displayname": "Washington (us-east)",
166-
"value": "us-east"
132+
"custom_config": {
133+
"type": "region",
134+
"grouping": "deployment",
135+
"original_grouping": "deployment",
136+
"config_constraints": {
137+
"showKinds": [
138+
"region"
139+
]
167140
}
168-
]
141+
},
142+
"key": "region",
143+
"required": true
169144
},
170145
{
171146
"key": "cloud_logs_provision"
@@ -533,9 +508,7 @@
533508
}
534509
],
535510
"architecture": {
536-
537511
"descriptions": "This architecture supports the deployment of IBM Log Analysis, IBM Cloud Monitoring and IBM Cloud Logs instances on IBM Cloud. It also supports the deployment of IBM Cloud Activity Tracker Event Routing to an Object Storage bucket, Log Analysis and Cloud Logs target.",
538-
539512
"features": [
540513
{
541514
"title": "Creates a Cloud Logs instance",
@@ -565,9 +538,7 @@
565538
"url": "https://raw.githubusercontent.com/terraform-ibm-modules/terraform-ibm-observability-da/main/reference-architecture/deployable-architecture-observability-instances.svg",
566539
"type": "image/svg+xml"
567540
},
568-
569541
"description": "This architecture supports creating and configuring IBM Cloud Observability instances and IBM Cloud Activity Tracker Event Routing to an Object Storage bucket, Log Analysis and Cloud Logs instance."
570-
571542
}
572543
]
573544
}
@@ -623,18 +594,18 @@
623594
},
624595
{
625596
"key": "cluster_config_endpoint_type",
626-
"options":[
597+
"options": [
627598
{
628-
"displayname" : "default",
629-
"value" : "default"
599+
"displayname": "default",
600+
"value": "default"
630601
},
631602
{
632-
"displayname" : "private",
633-
"value" : "private"
603+
"displayname": "private",
604+
"value": "private"
634605
},
635606
{
636-
"displayname" : "vpe",
637-
"value" : "vpe"
607+
"displayname": "vpe",
608+
"value": "vpe"
638609
},
639610
{
640611
"displayname": "link",
@@ -671,14 +642,14 @@
671642
},
672643
{
673644
"key": "log_analysis_endpoint_type",
674-
"options":[
645+
"options": [
675646
{
676-
"displayname" : "private",
677-
"value" : "private"
647+
"displayname": "private",
648+
"value": "private"
678649
},
679650
{
680-
"displayname" : "public",
681-
"value" : "public"
651+
"displayname": "public",
652+
"value": "public"
682653
}
683654
]
684655
},
@@ -712,14 +683,14 @@
712683
},
713684
{
714685
"key": "cloud_monitoring_endpoint_type",
715-
"options":[
686+
"options": [
716687
{
717-
"displayname" : "private",
718-
"value" : "private"
688+
"displayname": "private",
689+
"value": "private"
719690
},
720691
{
721-
"displayname" : "public",
722-
"value" : "public"
692+
"displayname": "public",
693+
"value": "public"
723694
}
724695
]
725696
},

solutions/instances/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ variable "region" {
4343
description = "The region where observability resources are created."
4444
type = string
4545
default = "us-south"
46-
47-
validation {
48-
condition = contains(["us-south", "us-east", "jp-osa", "jp-tok", "eu-de", "eu-es", "eu-gb", "au-syd"], var.region)
49-
error_message = "The specified region is not valid. Specify a valid region to create observability resources in."
50-
}
5146
}
5247

5348
variable "prefix" {

tests/pr_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ var validRegions = []string{
3838
"jp-tok",
3939
"us-south",
4040
"us-east",
41+
"ca-tor",
42+
"br-sao",
4143
}
4244

4345
var sharedInfoSvc *cloudinfo.CloudInfoService
@@ -113,7 +115,6 @@ func TestRunUpgradeSolutionInstances(t *testing.T) {
113115
"existing_kms_instance_crn": permanentResources["hpcs_south_crn"],
114116
"kms_endpoint_type": "public",
115117
"management_endpoint_type_for_bucket": "public",
116-
"log_analysis_service_endpoints": "public-and-private",
117118
"enable_platform_logs": "false",
118119
"enable_platform_metrics": "false",
119120
}

0 commit comments

Comments
 (0)