Skip to content

path.stack

stackstring

A field of the path variable.

Usage

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.

Examples

A stack gives its directory to a unit through values.

terragrunt.stack.hcl
unit "app" {
source = "../units/app"
path = "app"
values = {
stack_dir = path.stack
}
}