generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Description
Affected modules
Terraform CLI and Terraform provider versions
- Terraform version: >=1.9.2
- Provider version: 1.79.0
Terraform output
Debug output
Expected behavior
The module should allow eu-fr2 as a valid region in metrics_router_settings.permitted_target_regions.
Actual behavior
Terraform fails with a validation error due to eu-fr2 not being included in the list of permitted regions in the variable validation block:
validation {
error_message = "Valid regions for 'permitted_target_regions' are: us-south, eu-de, us-east, eu-es, eu-gb, au-syd, br-sao, ca-tor, jp-tok, jp-osa"
condition = (var.metrics_router_settings == null ?
true :
alltrue([
for region in var.metrics_router_settings.permitted_target_regions :
contains(["jp-osa", "au-syd", "jp-tok", "eu-de", "eu-gb", "eu-es", "us-south", "ca-tor", "us-east", "br-sao"], region)
])
)
}
Steps to reproduce (including links and screen captures)
- Set metrics_router_settings.permitted_target_regions = ["eu-fr2"]
- Run terraform apply
- Observe validation failure
Anything else
- The region eu-fr2 is valid and supported by IBM Cloud for metrics routing, but it's missing from the validation list.
- Suggest updating the validation block to include eu-fr2.
By submitting this issue, you agree to follow our Code of Conduct