https://pulumi.com logo
#golang
Title
# golang
i

important-appointment-55126

11/16/2020, 11:59 PM
a
StringMapOutput
is really a promise that a string map will resolve sometime later; it's not concrete to range over at that point - You can use
MapIndex
on it to get a promise of an output that will come as a lookup of a key.. but if you really need to range over it, you'll have to use
Apply
which will cause your function to run once it's resolved - see https://www.pulumi.com/docs/intro/concepts/programming-model/#apply
c

crooked-lunch-83455

11/17/2020, 12:14 AM
Thank you so much, first time using pulumi and once you said this it all clicked, the same way I parse out the state and the same way I apply it
👍 2
3 Views