Cloud Cost Estimator
Version updated for https://github.com/manmohanmirkar123/cloud-cost-estimator-action to version v1.0.1.
- This action is used across all versions by ? repositories.
Action Type
This is a Composite action.
Go to the GitHub Marketplace to find the latest changes.
Action Summary
The Cloud Cost Estimator GitHub Action automates the process of estimating monthly costs for cloud resources based on infrastructure-as-code (IaC) configurations like Terraform and CloudFormation. It integrates with CI workflows to provide real-time cost summaries, updates pull request comments with cost breakdowns, and generates detailed reports in both JSON and human-readable formats. This action helps developers and teams optimize cloud expenses by providing accurate cost insights directly within their development workflows.
What’s Changed
Cloud Cost Estimator v1.0.0
Initial release of Cloud Cost Estimator for GitHub Actions.
Highlights
- Estimate monthly cloud costs directly from Infrastructure as Code.
- Supports Terraform and CloudFormation projects.
- Works with AWS, Azure, and GCP.
- Generates JSON and readable text cost reports.
- Can post cost summaries directly to pull requests.
- Can upload reports as downloadable workflow artifacts.
- Automatically installs required tooling at runtime.
Inputs
iac-pathproviderinfracost-api-keygithub-tokencomment-on-prupload-report-artifactartifact-name
Outputs
total-monthly-costbreakdownreportreport-json
Setup
Create an INFRACOST_API_KEY repository secret before using the action. The Infracost API key is available on the free plan.
Example
- uses: manmohanmirkar123/cloud-cost-estimator-action@v1.0.0
with:
iac-path: examples/terraform-aws
provider: aws
infracost-api-key: ${{ secrets.INFRACOST_API_KEY }}