infracost breakdown
Show full breakdown of costs
Options
Name | Description |
---|---|
--config-file <config-file> | Path to Infracost config file. Cannot be used with path, terraform* or usage-file flags |
--fields <fields> | Comma separated list of output fields: all,price,monthlyQuantity,unit,hourlyCost,monthlyCost. Supported by table and html output formats |
--format <format> | Output format: json, table, html |
--no-cache | Don't attempt to cache Terraform plans |
--out-file <out-file> | Save output to a file, helpful with format flag |
--path, -p <path> | Path to the Terraform directory or JSON/plan file |
--show-skipped | Show unsupported resources |
--sync-usage-file | Sync usage-file with missing resources, needs usage-file too (experimental) |
--terraform-parse-hcl | Parse the HCL directly instead of generating a Terraform plan. This option does not need credentials and is faster (experimental) |
--terraform-plan-flags <terraform-plan-flags> | Flags to pass to 'terraform plan'. Applicable when path is a Terraform directory |
--terraform-use-state | Use Terraform state instead of generating a plan. Applicable when path is a Terraform directory |
--terraform-var <terraform-var> | Set a value for one of the input variables, similar to Terraform's -var flag. Only supported with --terraform-parse-hcl (experimental) |
--terraform-var-file <terraform-var-file> | Load variable files from the given file, similar to Terraform's -var-file flag. Only supported with --terraform-parse-hcl (experimental) |
--terraform-workspace <terraform-workspace> | Terraform workspace to use. Applicable when path is a Terraform directory |
--usage-file <usage-file> | Path to Infracost usage file that specifies values for usage-based resources |