https://infracost.io logo
#general
Title
# general
g

green-thailand-87645

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?
w

white-airport-8778

09/14/2022, 5:06 AM
Hi @green-thailand-87645! 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.
g

green-thailand-87645

09/19/2022, 2:27 PM
Noted thanks @white-airport-8778