How to find a file in Amazon S3 bucket without knowing the containing folder -


my amazon s3 bucket has folder structure looks below.

  • bucket-name\00001\file1.txt
  • bucket-name\00001\file2.jpg
  • bucket-name\00002\file3.doc
  • bucket-name\00001\file4.ppt

if know file name file3.doc , bucket name bucket-name how can search file3.doc in bucket-name. if knew, in folder 00002, go folder , start typing file name have no way know in folder file searching under.

you'll need use command line tool s3cmd if don't know @ all:

s3cmd --recursive ls s3://mybucket | grep "file3" 

but limited search possible:

https://stackoverflow.com/a/21836343/562557


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -