Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-26252

Update OSDFM Terraform AWS provider to support ap-southeast-6 region

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • Fleet Manager
    • None
    • Quality / Stability / Reliability
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • 1
    • OSDFM Sprint 1
    • None

       Description{}

      When provisioning OSDFM network resources for management/service clusters in the ap-southeast-6 region, Terraform fails with an invalid AWS Region error from the AWS provider:

      E1111 15:58:06.723236       1 logger.go:188] gitlab.cee.redhat.com/service/osd-fleet-manager/internal/osdfm/internal/workers.processClusterNetworkProvisioning: failed to reconcile cluster_account_provisioned hs-sc cluster d49l55sfmjcs738err8g status: error applying network resources for cluster 'd49l55sfmjcs738err8g': error running terraform apply: exit status 1
      Error: invalid AWS Region: ap-southeast-6
        with provider["registry.terraform.io/hashicorp/aws"],
        on main.tf line 12, in provider "aws":
        12: provider "aws" { 

      Current Terraform configuration uses:

      terraform {
        required_version = ">=1.2.0, <=1.14.0"  required_providers {
          aws = {
            source  = "hashicorp/aws"
            version = "5.100.0"
          }
        }
      } 

      The hashicorp/aws provider only adds full support (including hosted zone IDs, etc.) for ap-southeast-6 in later versions (e.g. >=6.13.0). With 5.100.0, ap-southeast-6 is treated as an invalid region, causing OSDFM cluster network provisioning to fail for that region.

      Refer: https://github.com/hashicorp/terraform-provider-aws/releases 

      We need to upgrade the AWS provider version used by the OSDFM Terraform modules so that ap-southeast-6 can be used as a valid region for management/service clusters.

              chuluo@redhat.com Chunxi Luo
              chuluo@redhat.com Chunxi Luo
              Anna Francis Anna Francis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: