Infracost

One of those great to have FinOps tools: Infracost. It is a tool that allows you to have a preliminary estimate of your terraform infrastructure cost prior to applying. A great tool to integrate into your toolchain (locally or in your CI/CD or both hhh) if you have budget constraints.

Not going to rewrite their doc, so go check it out directly here: Infracost official site

Use Cases

And how other companies use it: Infracost Use Cases. My favorite is “Scenario modeling and what-if analysis”, it’s just great that you can be transparent and show numbers in order to make budget-based decisions. It’s all estimations and not all cloud services are included, but you can’t complain it’s open source.

Brotherly advice: Hide this from your finance teams; they’ll be tempted to be reviewers of your Terraform Pull Requests.