This message was deleted.
# automation-api
s
This message was deleted.
b
can you show a code sample of your StackReference usage?
it needs to be inside your pulumi program, so the instantiation should be inside the pulumi program delegate (that isn't executed until pulumi execution starts) or inside your
Pulumi.Stack
constructor (which isn't instantiated until pulumi execution starts). The error you're seeing I would expect if you newed a StackReference outside of a pulumi program context.
☝️ 1