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

high-holiday-63390

11/05/2021, 11:57 AM
What’s the correct way to display some values from output in JS? For example, I created an AWS resource and want to print out its target URL
b

brave-planet-10645

11/05/2021, 12:01 PM
Hi Joshua, that's what outputs are for. In this example you can see at the bottom of the file we're displaying the values for the EC2 instance's public IP address and public DNS record
h

high-holiday-63390

11/05/2021, 12:01 PM
Ah ok, you export. Thanks.
r

red-match-15116

11/05/2021, 4:05 PM
If you do just want to print an Output without exporting it, you'll have to do that within an apply like.
resource.property.apply(console.log)
5 Views