liskl/Run Infracost
Show cloud cost estimate changes from Terraform in pull requests.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| tfjson | Path to Terraform plan JSON file. | no | — |
| tfplan | Path to Terraform plan file relative to 'tfdir'. Requires 'tfdir' to be set. | no | — |
| use_tfstate | Use Terraform state instead of generating a plan (default is false). | no | false |
| tfdir | Path to the Terraform code directory (default is current working directory). | no | — |
| tfflags | Flags to pass to the 'terraform plan' command. | no | — |
| percentage_threshold | The absolute percentage threshold that triggers a pull request comment with the diff. Defaults to 0, meaning that a comment is posted if the cost estimate changes. For example, set to 5 to post a comment if the cost estimate changes by plus or minus 5%. | no | 0 |
| pricing_api_endpoint | Specify an alternate price list API URL (default is https://pricing.api.infracost.io). | no | — |
| usage_file | Path to Infracost usage file that specifies values for usage-based resources. | no | — |
Outputs
| name | description |
|---|---|
| master_monthly_cost | The master branch's monthly cost estimate. |
| pull_request_monthly_cost | The pull request's monthly cost estimate. |