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

refined-glass-2474

10/06/2021, 5:35 PM
Re: Terragrunt update, does this line mean that I don’t need to even put project/paths in the config_file if I have --path defined? Or is this referring to Path: in the config_file?
Copy code
You no longer need to specify multiple Terragrunt modules in your Infracost config file, unless you want to specify per-project usage. Infracost will now detect all the Terragrunt modules that exist under the specified --path
c

crooked-daybreak-55253

10/06/2021, 5:55 PM
You don’t need to put project/paths in the config if you have --path defined. The new behavior is that it searches for any
terragrunt.hcl/.json
in any directory under
--path
(up to 5 levels deep). If it finds one we call
terragrunt run-all terragrunt-info
to get all the project paths.
r

refined-glass-2474

10/06/2021, 5:58 PM
Ok thanks! I’m still banging my head trying to get this going in github actions but it’s entirely a GH action problem. They’re frustrating compared to gitlab, etc.
👍 1
c

crooked-daybreak-55253

10/06/2021, 6:01 PM
Let me know if I can help. I’m happy to bang my head too 😁
r

refined-glass-2474

10/06/2021, 6:02 PM
Github is complaining about hostkey mistmatch pulling my modules repo, I’ve got a deployed (/staging /lab /prod) terragrunt repo full of HCL that call another repo for the actual modules.. feel like I’m getting there
They cause a ton of drama needing personal access tokens because the runners can’t access the org repos unlike every other CI out there
w

white-airport-8778

10/07/2021, 12:08 PM
@refined-glass-2474 in case it helps, we added GIT_SSH_KEY into the CI/CD integrations a while ago so TF modules in private repos could be cloned, here’s what we do with that env variable.
r

refined-glass-2474

10/07/2021, 5:17 PM
Thanks! Yeah it seems like I have to go the key generation route, that gets me to a ssh-key hostgen error to github but I can plug that in. One problem I’m also having is the root github action ya’ll have still defaults to 0.15.5, there’s an 1.0.1 in there IIRC but for some reason my terraform install GH action either never worked or is somehow getting skipped over and the infracost-gh-actions 0.15.5 default is getting used.. really frustrated with GH actions, this would be done in 10 minutes w/gitlab
w

white-airport-8778

10/07/2021, 5:19 PM
@refined-glass-2474 did you try setting
INFRACOST_TERRAFORM_BINARY=terraform_1.0
in the GH action? (mentioned in this section)
r

refined-glass-2474

10/07/2021, 5:20 PM
Ah I tried “=1.0.1” thanks I’ll try that
w

white-airport-8778

10/07/2021, 5:21 PM
I’ll check our Dockerfile to see if/how we can have that as an alias so it works too for the next user 😅
r

refined-glass-2474

10/07/2021, 5:24 PM
I think it was just a var at the top line of that block, I’d do a PR but I’ll probably be spending all day working on gh actions again
w

white-airport-8778

10/07/2021, 5:31 PM
Thanks - yep that was inspired from Atlantis’ dockerfile
r

refined-glass-2474

10/07/2021, 8:50 PM
What am I missing here?
Copy code
Running infracost breakdown using:
  $ infracost breakdown --no-color --format json --config-file infracost.yml
Show full breakdown of costs

USAGE
  infracost breakdown [flags]
w

white-airport-8778

10/07/2021, 8:52 PM
can you please set the env
INFRACOST_LOG_LEVEL=debug
in the GH Action? It might tell us more. Also, can we possibly see what’s inside infracost.yml? feel free to DM me if you prefer not to share it publicly
5 Views