im using a `for( var loop_var of ['a', 'b'])` loop...
# general
b
im using a
for( var loop_var of ['a', 'b'])
loop in node, and in the loop i'm using a
stackreference.getOutput("outputs").apply(x=>x[loop_var])
and I'm getting the same results on subsequent loops, it's like it's not reapplying to give me the new value on the next loop, is this a known bug or some weird closure situation?
if I change it to:
arn:aws:sns:us-west-2:111111111:company-sns-${loop_var}-event
it works, so its something in the apply for sure
here's the whole code if anyone is intersted
weird thing is that the policy seems to work, but not the subscription