Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#general
Title
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
.
Post