Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid AWS Region: me-central-1 #26548

Closed
nicon89 opened this issue Aug 30, 2022 · 3 comments · Fixed by #26590
Closed

Invalid AWS Region: me-central-1 #26548

nicon89 opened this issue Aug 30, 2022 · 3 comments · Fixed by #26590
Labels
enhancement Requests to existing resources that expand the functionality or scope. upstream Addresses functionality related to the cloud provider.

Comments

@nicon89
Copy link

nicon89 commented Aug 30, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

$ terraform -v
Terraform v1.2.8
on linux_amd64
+ provider registry.terraform.io/hashicorp/aws v4.28.0

Affected Resource(s)

provider "aws"

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

terraform {
  required_version = "~> 1.2.8"
  required_providers {
    aws = {
      version = "~> 4.28.0"
    }
  }
}

provider "aws" {
  region = var.region
  default_tags {
    tags = {
      terraform = "true"
      env       = "common"
    }
  }
}

resource "aws_s3_bucket" "_" {
  bucket_prefix = "terraform-state"
}

Debug Output

https://gist.github.com/nicon89/df6a7c4f0e4d71fbc7fce3ce2a29863f

Panic Output

Expected Behavior

s3 bucket should be created in me-central-1 region.

Actual Behavior

Error:

│ Error: Invalid AWS Region: me-central-1
│ 
│   with provider["registry.terraform.io/hashicorp/aws"],
│   on main.tf line 10, in provider "aws":
│   10: provider "aws" {

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/s3 Issues and PRs that pertain to the s3 service. labels Aug 30, 2022
@ewbankkit ewbankkit added enhancement Requests to existing resources that expand the functionality or scope. upstream Addresses functionality related to the cloud provider. and removed service/s3 Issues and PRs that pertain to the s3 service. needs-triage Waiting for first response or review from a maintainer. labels Aug 30, 2022
@ewbankkit
Copy link
Contributor

ewbankkit commented Aug 30, 2022

@nicon89 Thanks for raising this issue 👏.
Until support for the new me-central-1 AWS Region is added to the Terraform AWS Provider you should be able to use the skip_region_validation configuration setting to bypass this error.

Blog post.

@nicon89
Copy link
Author

nicon89 commented Aug 30, 2022

@ewbankkit thanks, that did the job.

@github-actions
Copy link

github-actions bot commented Oct 2, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. upstream Addresses functionality related to the cloud provider.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants