cycloidio / terracost

Cloud cost estimation for Terraform in your CLI
MIT License
278 stars 29 forks source link

estimation: referencing region with a variable in provider config doesn't work #19

Closed patrislav closed 3 years ago

patrislav commented 3 years ago

Currently, the terraform package expects the region to be defined directly (using "constant_value") and variables are not supported. However, specifying the region with a variable is a common use case and must be supported, e.g.:

variable "region" {
  type = string
  default = "eu-west-1"
}

provider "aws" {
  region = var.region
}