Skip to content
aicoolies logo
Infracost logo

Infracost

Cloud cost estimates for Terraform changes in pull requests

Infracost shows cloud cost changes directly in pull requests before infrastructure-as-code changes are deployed. It calculates cost impact across AWS, Azure, and GCP for Terraform, Terragrunt, CloudFormation, and AWS CDK workflows, with diffs in GitHub, GitLab, Bitbucket, and Azure DevOps. 12.4K+ GitHub stars, Apache 2.0 licensed. Used by GitLab, HelloFresh, JPMorgan Chase, BMW, and Accenture.

About Infracost

Infracost bridges the gap between infrastructure-as-code and cost management by providing real-time cost feedback in the developer workflow. When a developer opens a pull request that modifies Terraform, Terragrunt, CloudFormation, or AWS CDK files, Infracost calculates the monthly cost impact of those changes and posts a formatted comment showing what will increase, decrease, or stay the same. This shifts cost awareness from monthly billing surprises to the point where infrastructure decisions are actually made.

The tool parses supported IaC definitions and plan output to understand resource configurations, then maps them against cloud provider pricing APIs for accurate estimates. It supports over 1,000 resource types across AWS, Azure, and GCP, including complex pricing models like reserved instances, tiered storage, and data transfer. Usage-based costs can be estimated by providing expected usage patterns in a simple YAML file alongside your infrastructure code.

Infracost is Apache 2.0 licensed with 12.4K+ GitHub stars and 77+ contributors. The CLI runs locally or in CI/CD, with official integrations for GitHub Actions, GitLab CI, Jenkins, CircleCI, and Atlantis. The cloud dashboard (free for small teams) provides cost trending, team-level visibility, and budget alerts. For FinOps teams, Infracost provides the developer-facing cost feedback that complements monitoring tools like Kubecost or AWS Cost Explorer.

Pricing & Platform Specs

Pricing Summary

Infracost Community CLI is 100% free and open source under Apache-2.0 (12.5k+ GitHub stars) offering unlimited local and CI/CD PR cost diff estimations across Terraform, OpenTofu, and Terragrunt. Infracost Cloud (Pro/Enterprise starting from ~$250/mo or custom annual plans) provides centralized FinOps governance, policy-as-code guardrails (budget caps, ARM Graviton recommendations, tagging enforcement), custom enterprise cloud price books, SAML SSO, Jira/Slack alerts, and SOC 2 Type II compliance.

full pricing breakdown →

Supported Platforms

CLI (Mac/Linux/Windows), CI/CD plugins, Cloud dashboard

Explore categories, tags & use cases

Infrastructure as Code

HashiCorp's infrastructure-as-code tool for provisioning and managing cloud resources declaratively using HCL (HashiCorp Configuration Language). Write infrastructure definitions once and deploy to AWS, GCP, Azure, DigitalOcean, and 4,000+ providers. Features state management for tracking resources, plan/apply workflow for safe changes, modules for reusability, and workspaces for environment isolation. The industry standard for multi-cloud IaC with 48K+ GitHub stars.

freemium

Infrastructure as Code using real programming languages — TypeScript, Python, Go, C#, Java.

Pulumi is a modern Infrastructure as Code platform that lets teams define cloud infrastructure using familiar programming languages instead of DSLs. Supports TypeScript, Python, Go, C#, Java, and YAML across major clouds, Kubernetes, and a broad Pulumi Registry with Terraform-derived provider coverage. Offers testing, IDE autocomplete, reusable components, and Pulumi Cloud state/governance features.

freemiumOpen Source

Terraform pull request automation via GitHub/GitLab comments

Atlantis is a self-hosted Terraform pull request automation tool that runs plan and apply operations triggered by GitHub, GitLab, Bitbucket, or Azure DevOps comments. Type 'atlantis plan' on a PR to see infrastructure changes, then 'atlantis apply' to deploy. 9,100+ GitHub stars, Apache 2.0 licensed. Widely adopted as the standard for GitOps-style Terraform workflows, with locking to prevent concurrent modifications to the same resources.

Open Source

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is Infracost?

Infracost shows cloud cost changes directly in pull requests before infrastructure-as-code changes are deployed. It calculates cost impact across AWS, Azure, and GCP for Terraform, Terragrunt, CloudFormation, and AWS CDK workflows, with diffs in GitHub, GitLab, Bitbucket, and Azure DevOps. 12.4K+ GitHub stars, Apache 2.0 licensed. Used by GitLab, HelloFresh, JPMorgan Chase, BMW, and Accenture.

Is Infracost free?

Infracost offers a free tier alongside paid plans. Infracost Community CLI is 100% free and open source under Apache-2.0 (12.5k+ GitHub stars) offering unlimited local and CI/CD PR cost diff estimations across Terraform, OpenTofu, and Terragrunt. Infracost Cloud (Pro/Enterprise starting from ~$250/mo or custom annual plans) provides centralized FinOps governance, policy-as-code guardrails (budget caps, ARM Graviton recommendations, tagging enforcement), custom enterprise cloud price books, SAML SSO, Jira/Slack alerts, and SOC 2 Type II compliance.

Is Infracost open source?

Yes — Infracost is open source.

Is Infracost still maintained?

Yes — Infracost is active. Its listing was last verified on September 6, 2026.

What are the best Infracost alternatives?

The first editor-selected Infracost alternatives are Terraform, Pulumi, Atlantis.

How does Infracost score in our review?

The published editorial review lists Infracost at 84/100 overall across speed, privacy, and developer experience. Check the review's evidence status and test metadata for its verification level.