Closed m-parrella closed 1 month ago
Hi, It seems like the issue might be related to decoding/finding the YAML files, though it would help to have the exact error message.
Based on the directory structure, you could try resolving it by usingfind_in_parent_folders
project = yamldecode(file("${find_in_parent_folders("project.yaml")}"))
Simplified end-to-end example in: https://github.com/denis256/terragrunt-tests/tree/master/issue-3446-v2
Hi Denis, thanks for the example! I was indeed using the yamldecode(), but I had an issue with a dependency block which caused confusion, I am closing the issue. Thanks again!
Hi! I am working with AWS on a multi-account architecture and we are using Terragrunt latest version (v0.66.9) to manage the infrastructure. We are looking to implement default_tags with AWS provider but we are struggling to define account level tags with project level tags.
To simplify, let assume that the content of dev/account.yaml is:
environment: "sandbox"
And the content of /dev/department-a/project.yaml is:
owner: "department-a"
We are trying to edit the provider.hcl to use both sources in order to populate the default_tags:
When we run terragrunt apply, we are not able to make local.project get the correct path for example "dev/project-a/project.yaml". Is this the correct approach or is this a limitation of how locals works? Is there any workaround?
Thanks in advance!