aws cli get all the s3 buckets names code example
Example 1: aws cli s3 bucket list
aws s3api list-buckets --query "Buckets[].Name"
Example 2: aws cli s3 list buckets
aws s3api list-buckets --query "Buckets[].Name"
aws s3api list-buckets --query "Buckets[].Name"
aws s3api list-buckets --query "Buckets[].Name"