browseDownload binary →
infracost/Infracost
InfracostCloud cost estimation tool that shows cost breakdowns for Terraform and OpenTofu changes.
Infrastructure as CodeJSON
01Install
brew install infracost02Global Flags
| Flag | Type | Description |
|---|---|---|
--format | enum [table, json, html, diff, github-comment, slack-message] | Output format |
--path | string | Path to Terraform/OpenTofu directory |
--show-skipped | boolean | Show unsupported resources |
--no-color | boolean | Disable color output |
03Authentication
Methods
access-tokenenvironment-variables
Env vars
INFRACOST_API_KEYSetup
infracost auth login04Capabilities
Reference
binary
infracostcheck
infracost --versionauth
access-token, environment-variablesformats
table, html, diff, github-comment, slack-messagejson flag
--format json