infracost: HCL parsing does not work with Terragrunt project that use dependency outputs

As far as I understand it should be possible to run i.e. infracost breakdown --path=. --terraform-parse-hcl but I get following error:

infracost breakdown --path=. --terraform-parse-hcl 
Detected Terragrunt directory (HCL) at .

Error: 5 errors occurred:
        * fork/exec : no such file or directory
        * fork/exec : no such file or directory
        * fork/exec : no such file or directory
        * fork/exec : no such file or directory
        * fork/exec : no such file or directory

Just for your information, I know this is still experimental.

The .infracost folder is created btw. If you need more information I’m happy to help.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 53 (29 by maintainers)

Most upvoted comments

@fellnerse these changes have been released and are live in the latest v0.10.5 version. Thanks for all your help, if you could ping me an email to hugo@infracost.io with your details (name and address) we’d love to send you some Infracost swag for helping on this issue.

Sweet thanks for your patience @fellnerse, you rock. We couldn’t have done it without you 😍

Hey @fellnerse I’ve been working on a fix this afternoon and I’ve got another binary for you to test. Could you give 2006 a go:

curl -o infracost-build https://infracost-public-dumps.s3.amazonaws.com/builds/2006/infracost-darwin-arm64
chmod +x ./infracost-build
./infracost-build breakdown --path=.

Let me know how that goes, thanks