Skip to content

eu-fr2 Region Not Supported in metrics_router_settings Validation Block #86

@Naimabdelkefi

Description

@Naimabdelkefi

Affected modules

*metrics_routing

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)

  1. Set metrics_router_settings.permitted_target_regions = ["eu-fr2"]
  2. Run terraform apply
  3. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions