Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 483 Bytes

File metadata and controls

10 lines (6 loc) · 483 Bytes

The following command uses the list-buckets command to display the names of all your Amazon S3 buckets (across all regions):

aws s3api list-buckets --query "Buckets[].Name"

The query option filters the output of list-buckets down to only the bucket names.

For more information about buckets, see Working with Amazon S3 Buckets in the Amazon S3 Developer Guide.