Create a new helper function toYaml that will encode an input variable as YAML. This will be helpful to separate some configuration data out of HCL and in to YAML files. For example, a map of IAM users could be written as YAML in a users.yml file and included in a terragrunt.hcl with yamldecode(file(users.yml)).
Create a new helper function
toYaml
that will encode an input variable as YAML. This will be helpful to separate some configuration data out of HCL and in to YAML files. For example, a map of IAM users could be written as YAML in ausers.yml
file and included in aterragrunt.hcl
withyamldecode(file(users.yml))
.