worried-soccer-67640
09/09/2022, 1:47 PMinfracost breakdown
locally with my terragrunt file, but it seems to be pulling prices for us-east-1 rather than the region i'm actually using, is this expected?crooked-daybreak-55253
09/09/2022, 2:04 PMus-east-1
if we can’t detect the region for some reason.worried-soccer-67640
09/09/2022, 2:11 PMcrooked-daybreak-55253
09/09/2022, 3:00 PMworried-soccer-67640
09/09/2022, 3:07 PMaws/accounts/nonprod/terragrunt.hcl
we have
generate "provider" {
path = "<http://provider.tf|provider.tf>"
if_exists = "skip"
contents = <<EOF
provider "aws" {
assume_role {
role_arn = "arn:aws:iam::${get_env("TF_VAR_account_id", "")}:role/redacted"
}
region = "${get_env("AWS_DEFAULT_REGION","")}"
default_tags {
tags = local.common_tags
}
}
EOF
}
in the shell AWS_DEFAULT_REGION=eu-west-1
but infracost still uses us-east-1 prices when running infracost breakdown --path .
in the child hcl files directory: aws/accounts/nonprod/eu-west-1/dev/eks/terragrunt.hcl
even hardcoding region
to eu-west-1
in the generate block doesn't work. infracost still uses us-east-1 prices.crooked-daybreak-55253
09/09/2022, 5:09 PM