Hello everyone. I’m trying to understand `StackRef...
# getting-started
p
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
You can only refer to stacks within the same backend when using S3
w
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
@worried-knife-31967: That’s great information - exactly what I was looking for. Thanks!
h
Hello, am trying to replicate the same in python for local backend
Copy code
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..