A stack gives its directory to a unit through values.
unit "app" { source = "../units/app" path = "app"
values = { stack_dir = path.stack }}A field of the path variable.
path.stack is defined in terragrunt.stack.hcl, in every file that it includes or reads, and in the terragrunt.values.hcl beside it.
It is not defined in a unit. To use the directory of the stack in a unit, pass it through values.
A stack gives its directory to a unit through values.
unit "app" { source = "../units/app" path = "app"
values = { stack_dir = path.stack }}