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

Enable estimating cost from terraform references #77

Open
marcoldp opened this issue Jul 20, 2022 · 1 comment
Open

Enable estimating cost from terraform references #77

marcoldp opened this issue Jul 20, 2022 · 1 comment

Comments

@marcoldp
Copy link

As of now, the estimate only works when the resources variables are set directly and not via reference.
The goal of this issue is to find a way to enable this behavior and allow to estimate resources that have variables set via reference to other resources or data.

@marcoldp marcoldp changed the title Enable estimating cost from references and not variables Enable estimating cost from terraform references Jul 20, 2022
@olivier2t
Copy link

olivier2t commented Jul 20, 2022

For example if the location comes from a resource group fetched with a datasource, which is a common way of doing in Azure IaC.

resource "azurerm_linux_virtual_machine" "nexus" {
...
  resource_group_name   = data.azurerm_resource_group.nexus.name
  location              = data.azurerm_resource_group.nexus.location
...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants