I use stack refs with automation-api, not inline. What do you mean by retrieving a remote workspace? In stack B when I want to reference stack A I create a StackReference so not really using any automation-api constructs.
b
brash-solstice-49151
10/19/2023, 7:57 AM
Yeah that's exactly what I'm doing, but no bueno 😞 Initially, I was using the automation API to retrieve the remote (git) workspace and use the outputs from that for the inline program, but I've changed to using the
Most likely this error means that your automation api program captures a resource from program A in a variable, a map, or a class, and then when you try to run an and update on stack B and reference that resource, you get an error because it is not from the current operation and thus the current pulumi state knows nothing about it.
lemon-agent-27707
10/20/2023, 4:34 AM
Saving resources in variables or data structures and trying to reference them across different updates will cause problems.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.