https://pulumi.com logo
#general
Title
# general
c

cold-elephant-57834

03/07/2022, 11:01 PM
i am new to Pulumi with Go.. I am trying to use
ec2.GetSubnetIdsOutput
to lookup the subnet ids then would like to loop through the subnet ids. However I am having trouble to range over pulumi.StringArrayOutput (the Ids() returned by the look up).. anything I am missing?
b

billowy-army-68599

03/07/2022, 11:03 PM
you need to do it inside an
ApplyT
c

cold-elephant-57834

03/08/2022, 2:30 PM
thank you.. that works.. 🙂
5 Views