[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/unodeej/code-examples-python/master/aws_test.py [Back]  [Original]

import boto3

s3 = boto3.resource('s3')

for bucket in s3.buckets.all():
    print(bucket.name)

data = open('requirements.txt', 'rb')
s3.Bucket('enrollhero-test').put_object(Key='AARPTESTDOC.txt', Body=data)

Web Proxy Viewer  |  New URL  |  Original Page