Skip to content

Instantly share code, notes, and snippets.

@ohlol

ohlol/asdf.py Secret

Created March 26, 2020 03:45
Show Gist options
  • Save ohlol/90cdf58e5a2ea49976470c06d8fb4afd to your computer and use it in GitHub Desktop.
Save ohlol/90cdf58e5a2ea49976470c06d8fb4afd to your computer and use it in GitHub Desktop.
# 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