aws cli s3 list buckets 1

aws cli s3 list buckets

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

Here is what the above code is Doing:
1. We’re using the AWS CLI to list all the buckets in our account.
2. We’re using the –query option to filter the results.
3. We’re using the JSONPath expression Buckets[].Name to return the names of all the buckets.

Similar Posts