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)
@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:Let me know how that goes, thanks
ahm we are injecting all our variables with yamldecodes, as you can find in the skeleton: https://github.com/thirstydeveloper/terraform-terragrunt-skeleton/blob/f35e106f04c850f7b47428236efce61607b9665b/deployments/root.hcl#L31