Hello everyone! A simple question: When I run infr...
# help
Hello everyone! A simple question: When I run infracost breakdown my output not show the Total calculation. Its a terragrunt mono repo configuration:
├── prod
│   └── us-east-1
│       ├── ec2
│       │   └── terragrunt.hcl
│       └── vpc
│           └── terragrunt.hcl
I create a config file and the output seems to be OK, but is missing the Total in table: ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓ ┃ Project ┃ Monthly cost ┃ ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫ ┃ prod/us-east-1/ ec2 ┃ $18 ┃ ┃ prod/us-east-1/ vpc ┃ $33 ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛ I'm missing something ?
@proud-kitchen-98694 I think I understand what you mean, so the CLI output has a
that shows the total, but we could also add another row to the summary table with that total, did I understand that right?
@white-airport-8778 I see the Overall Total in CLI, and if that could be released in the future will be great. But in my case, even in gitlab comment do not show total row, and I cant find any reference in documentation:
I also tried with a single breakdown command to output the json and comment, but none of then publish the total row in gitlab. Any sugestions ?
Anyone can give me a hand? I dont know the total row is just for enterprise customers or not, but im stuck on this. I have tried many config options, tried on github and gitlab and the total row is missing on my git comments. According to this gitlab issue its to be default: https://github.com/infracost/infracost/issues/1538
After some testing, I found that v0.10.22 posts correctly to gitlab: But the release notes doesnt mention to any changes on this.
Hi @proud-kitchen-98694 - we removed the All projects row as usability tests showed that it was confusing engineers; they just wanted to see the cost impact of the projects they had changed. We also refactored how the CLI worked to make the PR comments faster to generate, and as part of that we can’t robustly generate the All projects row as that requires all projects to run, which is slow for large mono repos (thousands of projects). If you use Infracost Cloud, that still shows the All project costs in the dashboard as it combines the latest run of each project from the PRs that changed it last, so it can calculate that row fast as it’s looking up cached data vs re-calculating every project.
Humm, ok. This make sense @white-airport-8778 . In my case there's no mono repos, so i think that I can get the json output, make the calculation and post a second comment in PR. There's a script in infracost repo that will help me to accomplish that. Thanks a lot for your help.