https://pulumi.com logo
#getting-started
Title
# getting-started
a

agreeable-whale-35898

09/17/2022, 1:17 PM
Hi, when invoking
pulumi up
, is there a way for it to print my `Pulumi.Aws.Ec2.Instance`'s
PublicIp
property? I couldn't find it in docs, or maybe I just misunderstand some concept (e.g. "Outputs", but I'm not sure how to have it printed each time I run
pulumi up
). I tried e.g. (in C#):
Output.All(server.PublicIp)
and similar things, but nothing gets printed upon
pulumi up
s

stocky-restaurant-98004

09/17/2022, 2:21 PM
This page demonstrates stack exports in C#: https://www.pulumi.com/docs/get-started/aws/review-project/
🙏 1
(I'd paste the actual code but I'm on my phone - sorry about that.)
a

agreeable-whale-35898

09/17/2022, 3:31 PM
Thanks, that link solved it 😃
woohoo 1
b

busy-kitchen-1186

09/18/2022, 8:10 AM
@stocky-restaurant-98004 what if I just want to log some info in console and not print it out? I am using typescript,
console.log
does not print out anything.
s

stocky-restaurant-98004

09/19/2022, 1:04 PM
@busy-kitchen-1186 You don't see anything in
Diagnostics
in the output?
@busy-kitchen-1186 On my machine, this program:
Copy code
import * as pulumi from "@pulumi/pulumi";

console.log("Hello, Pulumi.");
Gives this output:
4 Views