Skip to content

Instantly share code, notes, and snippets.

@sergiorgiraldo
Created September 3, 2019 19:56
Show Gist options
  • Save sergiorgiraldo/94eedfc83bc8437c1140a2d6b491bb29 to your computer and use it in GitHub Desktop.
Save sergiorgiraldo/94eedfc83bc8437c1140a2d6b491bb29 to your computer and use it in GitHub Desktop.
import boto3, os
s3 = boto3.resource('s3')
my_bucket = s3.Bucket(name='NAME_OF_BUCKET') #not a path. if path is s3://foo, put _foo_
for object in my_bucket.objects.all():
print(object)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment