listing a bucket with AWS S3 client code example Example: aws cli s3 list buckets aws s3api list-buckets --query "Buckets[].Name"