Skip to content

Instantly share code, notes, and snippets.

@ohlol

ohlol/asdf.py Secret

Created March 26, 2020 03:45
Embed
What would you like to do?
# from stack 'one'
bucket = pulumi_aws.s3.Bucket('my-bucket')
pulumi.export('bucket_name': bucket.id)
# from stack 'two'
one = StackReference('one')
bucket = one.get_output('bucket_name')
print(bucket) # prints the Object, but I want it to print `my-bucket`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment