Skip to content

Instantly share code, notes, and snippets.

Created Nov 15, 2019
What would you like to do?
Amazon S3 - List all your buckets (aka 'ls' command)
import boto3
s3 = boto3.resource('s3')
for bucket in s3.buckets.all():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment