https://pulumi.com logo
#dotnet
Title
c

chilly-hairdresser-56259

07/09/2020, 8:13 PM
Hello, we have decided to start using C# for Pulumi instead of Python and am running into issues when doing a stackReference. With Python its pretty straight forward to me. You get the output then you access Id object within the outputs. However, what are we missing to access just "id"?
t

tall-librarian-49374

07/10/2020, 2:30 PM
What’s the actual type of
v
in your code snippet at runtime? I suspect it should be an immutable dictionary that you should cast to the strong type and then extract the value for
id
key.
c

chilly-hairdresser-56259

07/10/2020, 2:38 PM
I am pulling it straight from Pulumi's docs. https://www.pulumi.com/docs/intro/concepts/organizing-stacks-projects/ I assume these docs assume only oneobject returns from a single output. I figure with Best Practices use Pulumi UI as a quick insight to whats configured out there, so why only supply a single output where I want to see full config.