https://pulumi.com logo
#general
Title
# general
b

bored-river-53178

06/03/2020, 6:48 PM
is it possible to reference remote pulumi stack, e,g, one in s3? StackReference seems to only reference stacks in the same backend
a

able-beard-29160

06/03/2020, 6:52 PM
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

bored-river-53178

06/03/2020, 6:59 PM
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

able-beard-29160

06/03/2020, 7:10 PM
Oh, sorry. I misunderstood your question.
b

billowy-army-68599

06/03/2020, 7:22 PM
it's currently not possible, I'm afraid
g

gentle-diamond-70147

06/03/2020, 8:06 PM
It's not possible with
pulumi.StackReference
, but you can use the S3 SDK to retrieve the state and parse it yourself.
b

bored-river-53178

06/03/2020, 9:00 PM
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