Infracost
Cloud cost estimates for Terraform in your CLI and pull requests.
Infracost shows cloud cost estimates and FinOps best practices for Terraform. It lets engineers see a cost breakdown and understand costs before making changes, either in the terminal, VS Code or pull requests.
Get started
Follow our quick start guide to get started 🚀
Infracost also has many CI/CD integrations so you can easily post cost estimates in pull requests. This provides your team with a safety net as people can discuss costs as part of the workflow.
Post cost estimates in pull requests
Output of infracost breakdown
infracost diff shows diff of monthly costs between current and planned state
Infracost Cloud
Infracost Cloud is our SaaS product that builds on top of Infracost open source and works with CI/CD integrations. It enables you to check for best practices such as using latest generation instance types or block storage, e.g. consider switching AWS gp2 volumes to gp3 as they are more performant and cheaper. Team leads, managers and FinOps practitioners can also setup tagging policies and guardrails to help guide the team.
Supported clouds and resources
Infracost supports over 1,100 Terraform resources across AWS, Azure and Google. Other IaC tools, such as Pulumi, AWS CloudFormation/CDK and Azure ARM/Bicep are on our roadmap.
Infracost can also estimate usage-based resources such as AWS S3 or Lambda!
Community
Join our community Slack channel to learn more about cost estimation, Infracost, and to connect with other users and contributors.
Thanks to all the people who have contributed, including bug reports, code, feedback and suggestions!
Bugs and feedback
If you run into any issues or have feedback, please open a thread in GitHub Discussions.
Contributing
We ❤️ contributions big or small. Please start by opening a thread in GitHub Discussions to discuss your idea before submitting a PR. A more detailed explanation of our approach is on our contribution guide