This message was deleted.
# contributors
b
This message was deleted.
s
On the other side: wouldn’t it be cool to get infracost listed on https://www.toptal.com/developers/gitignore? 😉
m
hmm, it should only create a
.infracost
folder in Terraform project roots. Are there other places you’re seeing it created?
s
Yes, for example, recently I clone https://github.com/bridgecrewio/yor and there are tests and underneath in some sub-sub-subfolder infracost finds
.tf
files.
So I think it’s the normal “multi-project” feature and it’s nice to see the costs also for cloned other repos and Terraform stuff in it.
m
ah ok, it seems that Infracost is thinking that these sub folder tests are projects. Perhaps we should have some known paths to ignore, e.g.
tests
s
I wouldn’t do that because then we would loose costs of
tests
or
examples
.
… and where would you start and end with excluding/filtering.
m
yeah it would get tricky & confusing
s
Using
.terraform
for infracost files is also not ideal, right?
(inception) 😉
m
So we already try to infer module calls from the .terraform directory already. However, we are weary of putting all infracost config in there as terra form could remove our files or alter them without us knowing. Perhaps having a global cache/config is a good idea. I'll see if we can bring this up internally to discuss
s
Thanks