Title
#general
s

Sathish Kumar

09/14/2022, 2:45 AM
Hi, I would like to know which is the right way to do, running infracost directly on the folder or pass the plan json input?
Ali (Infracost)

Ali (Infracost)

09/14/2022, 5:06 AM
Hi @Sathish Kumar! Both methods are supported. If you already generate a TF plan JSON file in your CI/CD then we recommend passing that, otherwise you can run Infracost on the folder. The folder method (aka Terraform directory) works best for running the CLI on your laptop or using the VScode extension.
s

Sathish Kumar

09/19/2022, 2:27 PM
Noted thanks @Ali (Infracost)