Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you search an amazon s3 bucket?

I have a bucket with thousands of files in it. How can I search the bucket?

like image 780
vinhboy Avatar asked Feb 12 '11 16:02

vinhboy


People also ask

How do I find my AWS S3 bucket?

Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/ . In the Buckets list, choose the name of the bucket that you want to view the properties for. Choose Properties. On the Properties page, you can configure the following properties for the bucket.


2 Answers

Just a note to add on here: it's now 3 years later, yet this post is top in Google when you type in "How to search an S3 Bucket."

Perhaps you're looking for something more complex, but if you landed here trying to figure out how to simply find an object (file) by it's title, it's crazy simple:

open the bucket, select "none" on the right hand side, and start typing in the file name.

http://docs.aws.amazon.com/AmazonS3/latest/UG/ListingObjectsinaBucket.html

like image 134
rhonda bradley Avatar answered Sep 29 '22 12:09

rhonda bradley


Here's a short and ugly way to do search file names using the AWS CLI:

aws s3 ls s3://your-bucket --recursive | grep your-search | cut -c 32- 
like image 42
Abe Voelker Avatar answered Sep 29 '22 13:09

Abe Voelker