你如何搜索亚马逊 s3 存储桶?

问题描述:

我有一个包含数千个文件的存储桶.如何搜索存储桶?有什么工具可以推荐吗?

I have a bucket with thousands of files in it. How can I search the bucket? Is there a tool you can recommend?

S3 没有原生的search this bucket",因为实际内容是未知的——而且,因为 S3 是基于键/值的,所以没有原生的方式一次访问多个节点,更传统的数据存储提供 (SELECT * FROM ... WHERE ...)(在 SQL 模型中).

S3 doesn't have a native "search this bucket" since the actual content is unknown - also, since S3 is key/value based there is no native way to access many nodes at once ala more traditional datastores that offer a (SELECT * FROM ... WHERE ...) (in a SQL model).

您需要做的是执行 ListBucket 以获取存储桶中的对象列表,然后迭代执行您实现的自定义操作的每个项目 - 这就是您的搜索.

What you will need to do is perform ListBucket to get a listing of objects in the bucket and then iterate over every item performing a custom operation that you implement - which is your searching.