Skip to content

backend/s3: Support New af-south-1 Region Automatic Validation #24741

@bflad

Description

@bflad

Current Terraform Version

Terraform v0.12.24

Use-cases

https://aws.amazon.com/about-aws/whats-new/2020/04/announcing-aws-africa-cape-town-region/

Amazon Web Services (AWS) is announcing the immediate availability of the AWS Africa (Cape Town) Region, which is the first AWS Region in Africa. The AWS Africa (Cape Town) Region consists of three Availability Zones

The region shorthand name is af-south-1. Allow S3 Back storage in the new region without special backend configuration.

Attempted Solutions

terraform {
  # ... potentially other configuration ...

  backend "s3" {
    # ... other configuration ...

    region = "af-south-1"
  }
}
$ terraform init

Initializing the backend...

Error: Invalid AWS Region: af-south-1

Available Workaround

terraform {
  # ... potentially other configuration ...

  backend "s3" {
    # ... other configuration ...

    region                 = "af-south-1"
    skip_region_validation = true
  }
}

Proposal

Update AWS Go SDK dependency to v1.30.12, which contains new region endpoint information.

References

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions