This message was deleted.
# getting-started
s
This message was deleted.
m
The type of
vpc.ID()
is
IDOutput
, a kind of Pulumi output, which means it can’t just be cast as a string, because its value is computed during the deployment (so it can’t be supplied to the lookup function as a “prompt” value). You can however obtain and use the computed string by converting the ID output to a string output, then doing the lookup in the string output’s
.Apply()
--
Here’s a complete example based on the code you provided: https://gist.github.com/cnunciato/cd2b7dc8b8312de0e43cf6d8fd2c8e9d
❤️ 1
Hope that helps! Outputs are a tricky thing to pick up and get used to (and can be cumbersome in Go), but once you do, it’s generally smooth sailing.
h
Perfect! Thank you, I wouldn't have thought of using ApplyT at all ...
m
Awesome, you bet!