Hi, when invoking `pulumi up` , is there a way for...
# getting-started
a
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
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
Thanks, that link solved it 😃
woohoo 1
b
@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
@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: