Answers for "download file from s3 boto3"

2

python download s3 image

import boto3

s3 = boto3.client('s3', aws_access_key_id=... , aws_secret_access_key=...)
s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME')
Posted by: Guest on April-27-2020
1

boto3 upload file to s3

import boto3
s3 = boto3.resource('s3')
s3.meta.client.upload_file('/tmp/hello.txt', 'mybucket', 'hello.txt')
Posted by: Guest on June-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language