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

little-garage-43399

09/09/2019, 9:13 PM
hi, how can I get a resource property (ip4 for example) as a string (without exports)
w

white-balloon-205

09/09/2019, 10:23 PM
Not sure I understand the question - could you share a small code snippet of what you are trying to do?
l

little-garage-43399

09/09/2019, 10:32 PM
console.log(computeInstance.ipv4Address) does not return a string
w

white-balloon-205

09/10/2019, 2:07 AM
Ahh - you can do
computeInstance.ipv4Address.apply(console.log)
. See also https://www.pulumi.com/docs/intro/concepts/programming-model/#outputs.