Skip to content

Instantly share code, notes, and snippets.

@arnaud9
Last active January 25, 2019 07:50
Show Gist options
  • Save arnaud9/b9fddac2a4f4e3f3d2f5ba8016692046 to your computer and use it in GitHub Desktop.
Save arnaud9/b9fddac2a4f4e3f3d2f5ba8016692046 to your computer and use it in GitHub Desktop.
import boto3
s3 = boto3.resource('s3')
def upload_file_to_S3(filename, key, bucket_name):
s3.Bucket(bucket_name).upload_file(filename, key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment