-
-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Description
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:
- Remove the local
.terraformdirectory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/ - Re-initialize the project root to pull down modules:
terraform init - 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
Labels
No labels