Is there any way i can use dependencies and locals in my yaml var files?
Like this one:
dns_zones:
- name: "test-com"
dns_name: "test.com."
visibility: "puclic"
private_visibility_config:
[
'dependency.networks.outputs.network_selflink["default"]'
]
In this condition private_visibility_config passed as is, without replacing dependency expression.
Does it work if you use templatefile? E.g.,
yaml file
dns_zones:
- name: "test-com"
dns_name: "test.com."
visibility: "puclic"
private_visibility_config:
[
'${private_visibility_config}'
]
terragrunt.hcl
inputs = yamldecode(templatefile("path/to/yaml", { private_visibility_config = dependency.networks.outputs.network_selflink["default"] }))
Yes it does. So simple and elegant.
Thanks alot!