April 2018
Intermediate to advanced
280 pages
8h 37m
English
Your application may create several buckets to hold different files. Sometimes it is necessary to list all the S3 buckets. This cane be done simply by invoking the s3.buckets.all() function.
The following Python code will list all the S3 buckets:
import boto3s3 = boto3.resource('s3')for each in s3.buckets.all(): print (each)