Working with s3

Courtesy of these resources:
https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html
https://aws.amazon.com/cli/
https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html
https://devcenter.heroku.com/articles/s3-upload-python

import boto3

# Let's use Amazon S3
s3 = boto3.resource('s3')

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

# Upload a new file
data = open('favicon-32x32.png', 'rb')
s3.Bucket('thegratefulbrauer/recipe_description_images').put_object(Key='favicon-32x32.png', Body=data)