infracost / vscode-infracost

See cost estimates for Terraform right in your editor💰📉

Home Page:https://www.infracost.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extension does not work with workspaces that contain private modules (includes workaround)

hugorut opened this issue · comments

Infracost VSCode extension relies on the Infracost CLI to parse and fetch cost estimates. However, the CLI is yet to support private Terraform modules. See this issue infracost/infracost#1667 for more information. This means that the extension will fail with a "something wen't wrong" message. Until infracost/infracost#1781 is meged and v0.10.7 of the CLI is released users should do the following if they have private modules in their workspaces:

  1. cd into the project folder
  2. rm -rf .infracost
  3. terraform init

Then reopen the workspace in your editor and the Infracost extension should work as expected

As of the v0.10.7 CLI release, private modules are now supported by the Infracost VSCode extension. You will need to upgrade your CLI to 0.10.7 to see the expected behaviour.