broad-zoo-34077
09/29/2021, 1:42 PMcrooked-daybreak-55253
09/29/2021, 1:52 PMDetected Terraform directory). Are there files at /my/path/to/terragrunt/files that have an extension of .tf, .hcl, .hcl.json, or .tf.json?freezing-spoon-15505
09/29/2021, 2:03 PMInfracost v0.9.8
Yes there are 2
region.hcl
account.hclcrooked-daybreak-55253
09/29/2021, 2:25 PMterraform directory. We have been debating adding something like a --type flag so people can explicitly state what their project is. It would be great if you could create a GH issue for your case.
As far as work arounds, I can think of three and none of them are great:
1. Adding an empty terragrunt.hcl at /my/path/to/terragrunt/files will cause the CLI to recognize it as a terragrunt project. I’m not sure if this works, makes sense, or is even possible from a terragrunt perspective.
2. Moving region.hcl and account.hcl out of ``/my/path/to/terragrunt/files`` will make it search for the nested terragrunt.hcl files (up to 5 levels deep).crooked-daybreak-55253
09/29/2021, 2:27 PM--path to a directory one level above /my/path/to/terragrunt it would also search for nested terragrunt.hcl (as long as there are no hcl/tf at that directory).little-author-61621
If I use infracost diff --path=./app-1 for example, then Infracost will use Terragrunt instead of Terraform and it will run successfully, however since it will execute run-all commands it will take a lot of time to finish which is a problem especially for the CI.@freezing-spoon-15505 can you explain this case a little more please? Is running
terragrunt run-all picking up resources that aren't in the ./app-1 directory?freezing-spoon-15505
09/29/2021, 6:42 PMfreezing-spoon-15505
09/30/2021, 7:38 AMwhite-airport-8778
freezing-spoon-15505
09/30/2021, 2:17 PMterragrunt run-all plan in a project with hundreds of modules to get the plan output, takes a lot of time. There is a similar problem with Atlantis which this project is trying to solve terragrunt-atlantis-config. It basically generates atlantis config with all the terragrunt modules that were changed.
Hopefully we might see tools like this from the community, for Infracost too.white-airport-8778
freezing-spoon-15505
09/30/2021, 2:34 PM