Skip to content

Commit

Permalink
fix: updated the region selector to include all IBM Cloud regions (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashiq-J authored Oct 21, 2024
1 parent 0de73b2 commit c9423a5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 63 deletions.
85 changes: 28 additions & 57 deletions ibm_catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"description": "Configures the IBM Cloud Monitoring instance and logging agents."
},
{

"title": "Configures IBM Cloud Activity Tracker Event Routing",
"description": "Configures an IBM Cloud Activity Tracker route with a Cloud Object Storage, Log Analysis and Cloud Logs target."
}
Expand Down Expand Up @@ -130,42 +129,18 @@
"key": "resource_group_name"
},
{
"key": "region",
"required": true,
"options": [
{
"displayname": "Dallas (us-south)",
"value": "us-south"
},
{
"displayname": "Frankfurt (eu-de)",
"value": "eu-de"
},
{
"displayname": "London (eu-gb)",
"value": "eu-gb"
},
{
"displayname": "Madrid (eu-es)",
"value": "eu-es"
},
{
"displayname": "Osaka (jp-osa)",
"value": "jp-osa"
},
{
"displayname": "Sydney (au-syd)",
"value": "au-syd"
},
{
"displayname": "Tokyo (jp-tok)",
"value": "jp-tok"
},
{
"displayname": "Washington (us-east)",
"value": "us-east"
"custom_config": {
"type": "region",
"grouping": "deployment",
"original_grouping": "deployment",
"config_constraints": {
"showKinds": [
"region"
]
}
]
},
"key": "region",
"required": true
},
{
"key": "cloud_logs_provision"
Expand Down Expand Up @@ -533,9 +508,7 @@
}
],
"architecture": {

"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.",

"features": [
{
"title": "Creates a Cloud Logs instance",
Expand Down Expand Up @@ -565,9 +538,7 @@
"url": "https://raw.githubusercontent.com/terraform-ibm-modules/terraform-ibm-observability-da/main/reference-architecture/deployable-architecture-observability-instances.svg",
"type": "image/svg+xml"
},

"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."

}
]
}
Expand Down Expand Up @@ -623,18 +594,18 @@
},
{
"key": "cluster_config_endpoint_type",
"options":[
"options": [
{
"displayname" : "default",
"value" : "default"
"displayname": "default",
"value": "default"
},
{
"displayname" : "private",
"value" : "private"
"displayname": "private",
"value": "private"
},
{
"displayname" : "vpe",
"value" : "vpe"
"displayname": "vpe",
"value": "vpe"
},
{
"displayname": "link",
Expand Down Expand Up @@ -671,14 +642,14 @@
},
{
"key": "log_analysis_endpoint_type",
"options":[
"options": [
{
"displayname" : "private",
"value" : "private"
"displayname": "private",
"value": "private"
},
{
"displayname" : "public",
"value" : "public"
"displayname": "public",
"value": "public"
}
]
},
Expand Down Expand Up @@ -712,14 +683,14 @@
},
{
"key": "cloud_monitoring_endpoint_type",
"options":[
"options": [
{
"displayname" : "private",
"value" : "private"
"displayname": "private",
"value": "private"
},
{
"displayname" : "public",
"value" : "public"
"displayname": "public",
"value": "public"
}
]
},
Expand Down
5 changes: 0 additions & 5 deletions solutions/instances/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ variable "region" {
description = "The region where observability resources are created."
type = string
default = "us-south"

validation {
condition = contains(["us-south", "us-east", "jp-osa", "jp-tok", "eu-de", "eu-es", "eu-gb", "au-syd"], var.region)
error_message = "The specified region is not valid. Specify a valid region to create observability resources in."
}
}

variable "prefix" {
Expand Down
3 changes: 2 additions & 1 deletion tests/pr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ var validRegions = []string{
"jp-tok",
"us-south",
"us-east",
"ca-tor",
"br-sao",
}

var sharedInfoSvc *cloudinfo.CloudInfoService
Expand Down Expand Up @@ -113,7 +115,6 @@ func TestRunUpgradeSolutionInstances(t *testing.T) {
"existing_kms_instance_crn": permanentResources["hpcs_south_crn"],
"kms_endpoint_type": "public",
"management_endpoint_type_for_bucket": "public",
"log_analysis_service_endpoints": "public-and-private",
"enable_platform_logs": "false",
"enable_platform_metrics": "false",
}
Expand Down

0 comments on commit c9423a5

Please sign in to comment.