Adding child unit tags to generated block defined in root unit #3720
Unanswered
sophie-warner-annalise-ai
asked this question in
Q&A
Replies: 1 comment
-
You generally don't "inject" anything into a parent block. Units include other configurations, which are like template partials. You just merge them into the configurations where they're being included. The pattern that we recommend when users want that partial to be dynamic depending on the context of where it's being included is to use You can learn more about that here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi 👋
terragrunt version v0.71.1
I'm trying to define additional default provider tags in the each of my child units.
I have the following set up:
I'd imagine it would look something like this but I haven't gotten it to work.
The local.profile is from the root unit and the local.default_tags is from the final terraform generated by terragrunt. I don't know how to "inject" locals from the child VPC unit into the parent's block.
I've gotten this to work but it isn't as nice
Beta Was this translation helpful? Give feedback.
All reactions