Hi,
I am having trouble escaping or passing along a set to the for_each function when using a terraform json config file.
I can do this in a terraform file and everything works as expected:
for_each = {for e in local.email_ids: e.emails => e}
Here is what i tried for json syntax:
“for_each”: “${for e in local.email_ids: e.emails => e}”
That is not working. here is the error message:
23: “for_each”: “${for e in local.email_ids: e.emails => e}”,
Expected a closing brace to end the interpolation expression, but found extra
characters.
Anyone know the magic sequence?
Thanks