gpt4 book ai didi

amazon-web-services - Aws S3按标签过滤。按标签搜索

转载 作者:行者123 更新时间:2023-12-03 11:01:31 27 4
gpt4 key购买 nike

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

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

谢谢!

最佳答案

我还希望AWS最终将支持“按标签搜索文件”,因为这将提供诸如有一个照片存储区,其名称,描述和位置存储在标签中,因此我不需要单独的数据库。
但是,显然AWS显然不支持此功能,并且可能永远不会这样做。从storage service white paper引用:

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

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.

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。

关于amazon-web-services - Aws S3按标签过滤。按标签搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41571309/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com