This message was deleted.
s
This message was deleted.
e
Put the log inside an apply:
Copy code
privateSubnetIds.apply(ids => <http://pulumi.log.info|pulumi.log.info>(`Private subnet IDs: ${ids}[0]`))
a
wow, that worked, thanks a lot! Do you know why this syntax works and my form didn't?
e
Because as the error message says you can't meaningfully call toString on an Output<T>. An output is kind of like a promise so you have to wait for it's result (by using apply).
a
Right, so you mean that this
aws.ec2.getSubnetsOutput(tagsPrivate).apply(sn =>  sn.ids)
will not really return list of ids ?
e
It will return an Output of a list of ids
a
I see, thanks a lot
e
a
Awesome! 🙇‍♂️