[Python] Get file in the S3 bucket

Jua KIM·2021년 11월 29일
0
import boto3

s3 = boto3.resource("s3")
s3_bucket_name = "{s3 bucket name}"
s3_key = "{path of file in s3}"

obj = s3.Object(bucket_name=s3_bucket_name, key=s3_key)
body = obj.get()['Body']
profile
AI/ML engineer

0개의 댓글