Extension does not work with workspaces that contain private modules (includes workaround)
hugorut opened this issue · comments
Hugo Rut commented
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:
cd
into the project folderrm -rf .infracost
terraform init
Then reopen the workspace in your editor and the Infracost extension should work as expected