Upload a file to AWS S3 using Boto3

import boto3

s3_client = boto3.client('s3')

# Create some file with some contents in it
open('file.txt').write('Hello, world!')

# Upload the file to S3
s3_client.upload_file('file.txt', 'MyS3Bucket', 'file-on-s3.txt')
9 lines of code, 220 characters

Similar AWS code snippets using python

Finally, a good search for AWS Console

Was that in us-east-1? Or us-west-2? No need to remember. Just type the name of the resource and CloudTempo will find it.