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

kind-angle-62935

08/03/2022, 8:31 AM
Hello, a question on this usage:
infracost diff --path infracost-today.json --compare-to infracost-last-week.json
If I have a project that is in last-week but not today or vice versa, the diff handles that just fine, right?
l

little-author-61621

08/03/2022, 8:34 AM
If both
infracost-today.json
and
infracost-last-week.json
were generated from the same
--path
value when you run
infracost breakdown
then it should yeah.
k

kind-angle-62935

08/03/2022, 8:34 AM
In this case I would be making an infracost.yml that has multiple projects configured in it, but that list of projects could change between last week and today (for example if we added or removed a project)
The paths in an infracost.yml are relative to the
--path
passed in to the CLI?
l

little-author-61621

08/03/2022, 8:46 AM
That should work. When you're using the infracost.yml file then you don't pass a
--path
param so the paths in the yml should be relative to the current working directory.
k

kind-angle-62935

08/03/2022, 8:49 AM
ok thank you
3 Views