Infracost integrates with Infrastructure as Code technologies to check the costs of the infrastructure you're creating or changing, in multiple currencies, multiple cloud platforms, and can integrate with multiple repos and pull requests.
Hooray!
The single-sentence description is 'Shift FinOps Left". Not sure what that means, but let's look at the software itself.
The tag policies feature seems similar to the regulations one can set up in Trivy, like I've done over here, to make Terraform code adhere to certain rules.
I installed it via chocolatey on Windows 11, using it to check my Azure resources. Don't forget to get the API key as well, it is a lot easier to set up than you think, and used the CLI in the program; here's that documentation (Option 1).
It does not check the free tiers of Azure and uses On-Demand prices by default.
This is the output for infracost breakdown;
You'll notice that it does round down; My cost is 15.41$, and the table output says 15$ even. I palye
There are more commands listed here;
- infracost json made it a large text block.
- Not American? Don't rub it in. Need your currency listed and not USD? infracost configure set currency [currency] is what you need. I switch between Australian Dollars (AUD) and USD. It would be nice to have the option for both but that's a nitpick that makes the output less streamlined. (Also the cost would be 10$ more in AUD. Oof!)
- You can also post cost estimates to pull requests.
It's very helpful so I can monitor my budget for Azure Resources It saves me clicks from entering the Azure Portal and going to Cost Management.
Comments
Post a Comment