rough-oyster-77458
03/11/2022, 9:21 PMpulumi.export()
to export a variable in file1.py
. I'm going to use this variable in file2.py
Is there any way to get this variable in file2.py
?
So far I have found how to import this variable in CLI onlybillowy-army-68599
03/11/2022, 9:30 PMrough-oyster-77458
03/11/2022, 10:54 PMadorable-computer-41765
03/14/2022, 8:16 PMimport pulumi
config = pulumi.Config()
stack = pulumi.get_stack()
org = config.require("org")
stack_ref = pulumi.StackReference(f"{org}/my-first-app/{stack}")
pulumi.export("shopUrl", stack_ref.get_output("url"))