bulky-policeman-29913
12/06/2021, 5:46 PMgreat-queen-39697
12/06/2021, 5:51 PM<org>/<project>/<stack>
. So if you're in an org called "abc" and the projects are "123" and "456" with stacks called "dev", you can call the stack details from "123" in "456" like this (this is in Python):
from pulumi import StackReference
ref123 = StackReference(f'abc/123/dev')
ref123_output = ref123.get_output("ref")
bulky-policeman-29913
12/06/2021, 5:55 PMelegant-window-55250
12/06/2021, 5:57 PMred-match-15116
12/06/2021, 5:57 PMorg
...bulky-policeman-29913
12/06/2021, 6:04 PMred-match-15116
12/06/2021, 6:05 PMpulumi login
I don't think StackReference
will work. There are more details around this issue here: https://github.com/pulumi/pulumi/issues/2814bulky-policeman-29913
12/06/2021, 6:06 PMred-match-15116
12/06/2021, 6:31 PM(IE: cant have two stacks named dev)For S3 backend it is recommended to include the project name in the stack name to avoid this issue and to keep all stacks in the same bucket (this will allow StackReference) i.e.
myproject-dev
and other-project-dev
in one s3 bucket will allow StackReferencebulky-policeman-29913
12/06/2021, 6:37 PM../
or similar so you could get at other projects.
Of course this isn't a problem with the pulumi console solution.loud-rose-6296
03/25/2022, 3:51 PM