for_each in generate block #841
Unanswered
kcadorin-alpha
asked this question in
How do I
Replies: 1 comment
-
I solved similar issue and came up with following solution which based on
|
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
-
Having a hard time trying to make this work.
I'm trying to use the generate block to add a for_each and run the module multiple times depending on how much entries I have in the variable s3, but having lots of trouble making it right.
This are the important parts of the terragrunt.hcl file
Having these errors
Also tried the local.s3 variable like this:
And block generate like this:
To validate my changes I tried to pass the locals inside the generate block like pure terraform code, that way it works.
So the issue is clearly with how terragrunt is passing the variable to the generate block, but I don't what is happening because terragrunt don't output anything I can use to debug that variable.
Any help will be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions