Title
#general
Malcolm (Terrateam)

Malcolm (Terrateam)

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?
Alistair (Infracost)

Alistair (Infracost)

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.
Malcolm (Terrateam)

Malcolm (Terrateam)

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)
8:35 AM
The paths in an infracost.yml are relative to the
--path
passed in to the CLI?
Alistair (Infracost)

Alistair (Infracost)

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.
Malcolm (Terrateam)

Malcolm (Terrateam)

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