Skip to content

At what stage are locals evaluated, when are locals in scope for generate blocks #3909

Discussion options

You must be logged in to vote

In relation to my original question, you can see from running terragrunt with --terragrunt-log-level debug that it

  1. Evaluates the locals in the unit terragrunt.hcl
  2. Evaluates the locals in any included *.hcl
  3. Copies the module and generated config into the terragrunt cache

As the reading of the file happens after from the locals have populated it looks like they aren't in scope at that time.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@sophie-warner-annalise-ai
Comment options

@yhakbar
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sophie-warner-annalise-ai
Comment options

You must be logged in to vote
0 replies
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