Skip to content

Adding child unit tags to generated block defined in root unit #3720

Discussion options

You must be logged in to vote

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 read_terragrunt_config to have the included partial read information after it's being included.

You can learn more about that here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sophie-warner-annalise-ai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants