python으로 aws s3 bucket 다루기

s3 bucket에 있는 파일 목록 보기

import boto3
s3 = boto3.resource('s3')
my_bucket = s3.Bucket('some/path/')

for my_bucket_object in my_bucket.objects.all():
    print(my_bucket_object)

참고

Leave a Reply