Bjorn248 / terraform_cashier

Designed to analyze terraform template files and return a cost estimate of running the infrastructure, assuming AWS is the target cloud. Perhaps other clouds can be supported going forward?
MIT License
116 stars 12 forks source link

Not supported plan in JSON format #18

Open kino505 opened 3 years ago

kino505 commented 3 years ago

I didn't find a possibility of processing plan files in JSON format. What a pity. Is it hard to realize?

Bjorn248 commented 3 years ago

Correct. Currently, only bson plans are supported. I didn't know it was possible to use terraform plan to generate a JSON format plan file. I can't find the option anywhere on this page.

kino505 commented 3 years ago

Oh, it is not direct path:) terraform plan -out=plan.save terraform show -json plan.save

Bjorn248 commented 3 years ago

Ah, no, that is currently not supported. Only the output of terraform plan is supported.

kino505 commented 3 years ago

Ok. I understood. Thank You for your answer. It will be useful when using several dedicated modules in a sequence (one by one).