Skip to content

Error: region not found for name "eu-central-2" #14

@markandersontrocme

Description

@markandersontrocme

Description

Tried using the module, copied the example from here. When running terraform plan I get this error

│ Error: finding Region by name
│
│   with module.eks_cluster.module.pricing.data.aws_region.one["eu-central-2"],
│   on .terraform/modules/eks_cluster.pricing/modules/pricing/regions.tf line 5, in data "aws_region" "one":
│    5: data "aws_region" "one" {
│
│ region not found for name "eu-central-2"
  • ✋ I have searched the open/closed issues and my issue is not listed.

⚠️ Note

Before you submit an issue, please perform the following first:

  1. Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
  2. Re-initialize the project root to pull down modules: terraform init
  3. Re-attempt your terraform plan or apply and check if the issue still persists

Versions

  • Module version [Required]: 2.0.0

  • Terraform version:

Terraform v1.1.6

  • Provider version(s):
  • provider registry.terraform.io/hashicorp/aws v4.38.0

Reproduction Code [Required]

module "pricing" {
  source  = "terraform-aws-modules/pricing/aws//modules/pricing"
  version = "2.0.0"

  debug_output = true

  resources = {
    "aws_instance.this" = {
      instanceType = "t3.large"
      location     = "us-east-1"
    }
  }
}

Steps to reproduce the behavior:

Expected behavior

Looking to pricing_per_resources

Actual behavior

Getting an error: region not found for name "eu-central-2"

Terminal Output Screenshot(s)

Additional context

I have submitted 2 PRs in the past for fixing this for other regions, is there a more permanent solution? I tried using skip_region_validation = true but doesn't seem to work...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions