Skip to content

Instantly share code, notes, and snippets.

@sebsto
Created Nov 15, 2019
Embed
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():
print(bucket.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment