https://pulumi.com logo
d

damp-room-71337

09/03/2019, 1:27 PM
does
StackReference
work with S3 state backends?
w

white-balloon-205

09/03/2019, 1:59 PM
Yes - but currently only stacks managed by the same backend can use StackReference to reference each other.
d

damp-room-71337

09/03/2019, 1:59 PM
does ‘same backend’ mean same bucket, or bucket and path?
I’m just trying this out, and currently have
$BUCKET/infra/.pulumi
and
$BUCKET/app/.pulumi
- is StackReference not supported in that layout?
w

white-balloon-205

09/03/2019, 3:12 PM
Yes - this is something we plan to address as part of https://github.com/pulumi/pulumi/issues/2522.
d

damp-room-71337

09/03/2019, 3:50 PM
@white-balloon-205 what’s the syntax for the StackReference stack name when using S3? From this ticket it looks like it should be
projectname/stackname
, but it only works for me if it’s just
stackname
https://github.com/pulumi/pulumi/issues/2814
w

white-balloon-205

09/03/2019, 5:20 PM
Yes - re-reading these issues - I believe you are right that StackReference across stacks in the S3 backend will not work currently until https://github.com/pulumi/pulumi/issues/2522 is addressed.
d

damp-room-71337

09/04/2019, 8:40 AM
fwiw this is a huge gotcha for the S3 backend - it takes all of this off the table https://www.pulumi.com/docs/intro/concepts/organizing-stacks-projects/#micro-stacks