is it possible to reference remote pulumi stack, e...
# general
b
is it possible to reference remote pulumi stack, e,g, one in s3? StackReference seems to only reference stacks in the same backend
a
Yes, but you'll have to do the namespacing yourself. see this thread and linked blog post: https://pulumi-community.slack.com/archives/C84L4E3N1/p1590257065017000
b
I am not sure if it is related to my question. I want to reference a remote stack, e.g. residing in a backend different than the current one, and I see no way to specify a different backend to stackreference
let's say currently I use a stack from s3 backend and I want to reference a stack in google cloud
a quote from https://github.com/pulumi/pulumi/issues/2208 suggests that it is not possible:
StackReference currently can only work across stacks all managed by the same backend
@white-balloon-205 could you please confirm that this is currently not possible?
a
Oh, sorry. I misunderstood your question.
b
it's currently not possible, I'm afraid
g
It's not possible with
pulumi.StackReference
, but you can use the S3 SDK to retrieve the state and parse it yourself.
b
I see, thanks
unfortunately I need a generic way, so probably the only option right now is to parse outputs of one pulumi stack and provide the result as input to another one