For a tool that prices Terraform changes, the first results are infracost/infracost, cycloidio/terracost (Terracost is a CLI tool that estimates cloud costs from Terraform plans, directly matching the need for integrating with Terraform to predict costs before applying changes, though it may lack explicit policy enforcement features) and opencost/opencost (OpenCost monitors and allocates Kubernetes and cloud infrastructure costs in real-time, but it does not integrate with Terraform to predict or compare costs before changes are applied, so it is more of a cost observability tool than a Terraform cost estimation tool). Compare the match explanations and check the project documentation against your requirements.
Tools that analyze Terraform plans to provide projected cloud spending estimates before applying infrastructure changes.
Infracost is an infrastructure-as-code financial governance platform that calculates the cost impact of cloud resource changes. By performing static analysis on configuration files, the tool identifies infrastructure resources and their properties to estimate spending changes before deployment occurs. The platform distinguishes itself by integrating directly into development workflows, providing automated cost reporting and policy validation within pull request comments. It utilizes a modular architecture to map infrastructure definitions to real-time pricing data from cloud providers, allowi
Infracost is exactly the tool this search asks for: it integrates with Terraform to predict cloud infrastructure costs, supports multi-cloud providers (AWS, Azure, GCP), compares pre- and post-deployment costs, works in CLI and CI/CD pipelines, breaks down costs per resource, and enforces budget policies via automated pull request comments.
Cloud cost estimation for Terraform in your CLI
Terracost is a CLI tool that estimates cloud costs from Terraform plans, directly matching the need for integrating with Terraform to predict costs before applying changes, though it may lack explicit policy enforcement features.
OpenCost is an open-source tool for monitoring and allocating Kubernetes and cloud infrastructure costs. It provides real-time visibility into spending by distributing asset costs to workloads based on resource requests and usage, breaking down spend by namespace, deployment, pod, and label. The system functions as both a Kubernetes cost allocation engine and a multi-cloud cost analyzer, ingesting billing data from AWS, Azure, and GCP to present unified cost metrics alongside cluster costs. The tool distinguishes itself through its allocation-based cost model, which compares requested versus
OpenCost monitors and allocates Kubernetes and cloud infrastructure costs in real-time, but it does not integrate with Terraform to predict or compare costs before changes are applied, so it is more of a cost observability tool than a Terraform cost estimation tool.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| infracost/infracost | 12.4K | Go | Apache-2.0 | |
| cycloidio/terracost | 349 | Go | MIT | |
| opencost/opencost |
| 6.6K |
| Go |
| Apache-2.0 |