faint-oyster-21329
04/07/2023, 5:16 PMterraform.tfstate
file instead of the plan? basically, if a user changes values in the params file and saves, but doesn't deploy, we don't want an updated cost based on the params. we just want to know the estimated cost based on what's listed in the state file 🤞crooked-daybreak-55253
04/07/2023, 5:27 PM-json
flagto convert your .tfstate to a state JSON, then call infracost breakdown -path=tfstate.json
--path
and we’ll generate an estimate directly from the .tf files, i.e. infracost breakdown --path=./my/terraform_project
. It tends to be much faster than generating a plan json.faint-oyster-21329
04/07/2023, 6:00 PMcrooked-daybreak-55253
04/07/2023, 7:35 PM--format=json
flag to the breakdown command. You can also set --out-file=infracost.json
to put it in a filewhite-airport-8778
04/07/2023, 7:36 PM