sparse-intern-71089
03/11/2022, 2:40 PMechoing-dinner-19531
03/11/2022, 2:46 PMpulumi.export
is for saving values as stack outputs so that pulumi stack output
and StackReferences can see them.rough-oyster-77458
03/11/2022, 9:20 PMpl.export('my_var', 'some string')
Do you mean I can import it like this:
import my_var
Are you sure it's gonna work?echoing-dinner-19531
03/11/2022, 10:03 PMpulumi stack output
If you want to import a variable in another python file, just import it. There is nothing Pulumi specific about this, its just python.