Skip to content

backend:s3 skip_region_validation is deprecated, but there's no replacement #23039

@Karreg

Description

@Karreg

Terraform Version

0.12.8

Terraform Configuration Files

terraform {
  backend "s3" {
    bucket = "terraform-bucket-gitlab-ha"
    key    = "terraform-gitlab-ha"
    region = "eu-west-0"
    
  }
}

Debug Output

terraform init

Initializing the backend...

Error: Invalid AWS Region: eu-west-0

Additional Context

To bypass this issue, the solution is to use skip_region_validation, but it's referenced as deprecated in the documentation. There is no alternative described : https://www.terraform.io/docs/backends/types/s3.html#skip_region_validation

Either there is a lack of documentation, or the region will be validated without any option to work on something else than AWS, which is a very bad news.

Could you give the alternative to this option that is not deprecated, or be more precise on why and when the validation will become mandatory? It will break everything on Flexible Engine for instance...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions