Closed stefan-matic closed 3 months ago
Hey @stefan-matic I wasn't able to reproduce the issue, the example I used https://github.com/levkohimins/terragrunt-issue-3175 Most likely you misunderstood the example.
No news is good news. If you find problems feel free to open a new issue or reopen this one.
Describe the bug
The Terragrunt documentation for
get_parent_terragrunt_dir()
shows an example of how the function can be used for fetching values incommon.tfvars
.I've replicated the example setup on my end with the
terraform-aws-modules/vpc/aws
module andget_parent_terragrunt_dir()
still outputs the location of/app1/common.tfvars
instead of/common.tfvars
.When used with the
include
block, theget_parent_terragrunt_dir()
function works correctly.Steps To Reproduce
Follow the example setup in the documentation
Expected behavior
The
get_parent_terragrunt_dir()
function should output the parent terragrunt.hcl location, not the child (when not used together with theinclude
block).If the
get_parent_terragrunt_dir()
function cannot work as expected without theinclude
block, the documentation needs to be updated as it's misleading.Nice to haves
Versions