https://pulumi.com logo
Title
e

early-analyst-76866

11/15/2022, 7:52 AM
Hey team, I am new to Pulumi and I am stuck on one usecase where I want to show the user the actual property value in my stack trace. My current stack output is this:
Current stack outputs (1):
                              OUTPUT  VALUE
                                               vid     vpc-0515230c3d5f949a8
I am able to reference my stack using
stack_ref = pulumi.StackReference("PulumiPlay-dev")
but I am not sure how to print the value of vid now. I have tried using the
get_output
method but it is not returning anything.
r

rapid-tomato-50806

11/19/2022, 4:04 AM
Hi Chaitanya, you should just need to do something like:
vid = stack_ref.get_output("vid")
sorry nm, I see you moved on from the later in the channel. 🙂