https://pulumi.com logo
Title
p

prehistoric-london-9917

05/05/2021, 9:42 PM
Hello everyone. I’m trying to understand `StackReference`s. The docs refer to “fully qualified” stack names. I’m trying to understand how that works for a self-managed backend (say S3). For example, in a self-managed backend, what would the
organization
reference?
b

bumpy-summer-9075

05/05/2021, 10:33 PM
You can only refer to stacks within the same backend when using S3
w

worried-knife-31967

05/05/2021, 10:39 PM
In essence, you need to use the same blob/file for each project and then you can reference between them. They also need to use the same passphrase.
p

prehistoric-london-9917

05/06/2021, 4:02 AM
@worried-knife-31967: That’s great information - exactly what I was looking for. Thanks!
h

hallowed-ice-8403

07/13/2021, 4:41 AM
Hello, am trying to replicate the same in python for local backend
from pulumi import StackReference

stack_ref = StackReference(name="stack-reference",stack_name = "project.mystack")
s3_name = stack_ref.get_output("s3_bucket")
print(s3_name)
can u please let me know if i am missing something here..