bulky-policeman-2991312/06/2021, 5:46 PM
great-queen-3969712/06/2021, 5:51 PM
. 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-2991312/06/2021, 5:55 PM
elegant-window-5525012/06/2021, 5:57 PM
red-match-1511612/06/2021, 5:57 PM
red-match-1511612/06/2021, 6:05 PM
bulky-policeman-2991312/06/2021, 6:06 PM
red-match-1511612/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.
in one s3 bucket will allow StackReference
bulky-policeman-2991312/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-629603/25/2022, 3:51 PM