terraform-cost-estimation provides a free service for estimating the cost of your infrastructure defined in Terraform. It processes Terraform state or plan files to calculate hourly and monthly costs using official AWS pricing data. The service is designed to help users understand infrastructure expenses before and after deployment, or determine price differences.
This project offers a secure way to estimate infrastructure costs without exposing sensitive information directly. It supports various Terraform resources and versions. The anonymization approach processes Terraform state/plan files with a utility terraform.jq to extract cost keys, ensuring privacy. It supports estimation from both Terraform plans and state files, offering flexibility in usage.
- Resource Support: Supports a wide range of AWS resources including EC2, EBS, ELB, and more.
- Terraform Versions: Compatible with any version of Terraform state files.
- Secure Anonymization: Uses
terraform.jqto anonymize sensitive data before cost calculation. - Plan & State Support: Accepts Terraform plan and state files as input.
- Cost Breakdown: Provides both hourly and monthly cost estimations.
- Easy Integration: Integrates well with CI/CD pipelines through command-line interface.
- Extensible: Designed to be easily extended to support additional cloud providers and resources.
The project is actively maintained, with recent commits and ongoing development. It has a stable core functionality and a growing community. The documentation is complete and provides clear instructions for usage. Regular updates suggest a commitment to reliability and support.
This project benefits developers, DevOps engineers, and anyone managing infrastructure costs with Terraform. It allows users to accurately estimate infrastructure spending before deployment, understand cost changes, and proactively manage cloud expenses. It's valuable as a cost control measure, providing insights unavailable from manual calculations or generic tools.
