Aws S3按标签过滤.按标签搜索 [英] Aws S3 Filter by Tags. Search by tags

查看:616
本文介绍了Aws S3按标签过滤.按标签搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们拥有在AWS S3上具有新的Aws SDK API的存储桶.我们上传并标记了很多文件和文件夹.

We have our bucket with new Aws SDK API on AWS S3. We uploaded and tagged lots of files and folders with tags.

我们如何过滤键值标签或仅过滤其中之一?我想用key ="temp"或key ="temp"和value ="lol"查找所有对象.

How can we filter on key-value tag, or only one of them? I'd like to find all the objects with key = "temp", or key = "temp" and value = "lol".

谢谢!

推荐答案

我也希望AWS最终支持按标签搜索文件".因为那样会带来诸如具有名称,描述,位置存储在标签中的照片存储,因此我不需要单独的数据库.

I also hoped that AWS will eventually support "search files by tags" because that would open up possibilities like e.g. having a photo storage with the names, descriptions, location stored in tags so I wouldn't need a separate database.

但是,显然,AWS明确不支持此功能,并且可能永远不会这样做.引用其存储服务白皮书:

But, apparently AWS explicitly is not supporting this, and will probably never do so. Quoting from their storage service white paper:

Amazon S3并不适合所有存储情况. [...]一些存储需求,您应该考虑其他AWS存储选项[...]

Amazon S3 doesn’t suit all storage situations. [...] some storage needs for which you should consider other AWS storage options [...]

Amazon S3不提供查询功能来检索特定对象.使用Amazon S3时,您需要知道要从服务中检索的文件的确切存储桶名称和密钥. Amazon S3本身不能用作数据库或搜索引擎.

Amazon S3 doesn’t offer query capabilities to retrieve specific objects. When you use Amazon S3 you need to know the exact bucket name and key for the files you want to retrieve from the service. Amazon S3 can’t be used as a database or search engine by itself.

相反,您可以将Amazon S3与Amazon DynamoDB,Amazon CloudSearch或Amazon Relational Database Service(Amazon RDS)配对,以索引和查询有关Amazon S3存储桶和对象的元数据.

Instead, you can pair Amazon S3 with Amazon DynamoDB, Amazon CloudSearch, or Amazon Relational Database Service (Amazon RDS) to index and query metadata about Amazon S3 buckets and objects.

AWS建议改用DynamoDB,RDS或CloudSearch.

AWS suggests using DynamoDB, RDS or CloudSearch instead.

这篇关于Aws S3按标签过滤.按标签搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆