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

Wrong project sum calculation

jgrumboe opened this issue · comments

The project total costs sum up all tree-children, which is incorrect because the tree contains the .tf file and the resources/modules within the same .tf file.

In the screenshot, the google/apps/europe-west1/dev project should only say “$73.00” instead of “$146.00" (which is just double as the main.tf and the module are child elements of the project).

image

Same error on my side

image

I've added this to our bug backlog where it will get prioritized. In the mean time people can 👍 if they're running into it too.

Thanks all for reporting this, I believe the problem here is that we are showing costs for the different project usage of these files. So this is more a UX issue as we do not "show" the different project usage per resource/module, but rather sum it up. Which, is not very clear. The fix is to show which projects are associated with the resources/files rather than what we currently do.