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

查看:26
本文介绍了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天全站免登陆