browse
infracost/

Infracost

Infracost

Cloud cost estimation tool that shows cost breakdowns for Terraform and OpenTofu changes.

Infrastructure as CodeJSON
01Install
brew install infracost
Download binary →

02Global Flags
FlagTypeDescription
--formatenum [table, json, html, diff, github-comment, slack-message]Output format
--pathstringPath to Terraform/OpenTofu directory
--show-skippedbooleanShow unsupported resources
--no-colorbooleanDisable color output

03Authentication
Methods
access-tokenenvironment-variables
Env vars
INFRACOST_API_KEY
Setupinfracost auth login

04Capabilities
Reference
binaryinfracost
checkinfracost --version
authaccess-token, environment-variables
formatstable, html, diff, github-comment, slack-message
json flag--format json