Skip to content

path.include

unitstackstring

A field of the path variable.

Usage

path.include is defined in a file that a unit or a terragrunt.stack.hcl includes with an include block.

Examples

An included stack file finds its units beside itself.

# catalog/components.hcl, included by terragrunt.stack.hcl
unit "app" {
source = "${dirname(path.include)}/units/app"
path = "app"
}