Skip to content

path.read

unitstackstring

A field of the path variable.

Usage

path.read is defined in a file that read_terragrunt_config reads. When that file has an include block, path.read has the same value in the included file.

Examples

A read file loads a data file beside itself.

env.hcl
locals {
settings = yamldecode(file("${dirname(path.read)}/settings.yml"))
}