在不执行对象复制的情况下使用lambda更新Amazon s3对象元数据? [英] Update amazon s3 object meta data with lambda without performing a object copy?

查看:97
本文介绍了在不执行对象复制的情况下使用lambda更新Amazon s3对象元数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用lambda函数添加或更新s3对象元数据而无需复制对象? 此2岁的帖子说我们确实需要进行复制,但是它已经有2年历史了,所以也许情况已经变了吗?

Is it possible to add or update an s3 objects metadata with a lambda function without making a copy of the object? This 2 year old post says that we do need to make a copy, but its 2 years old, so maybe things have changed?

推荐答案

从某种意义上说,从根本上说,什么都没有改变,因为对象是不可变的,而元数据是对象的一部分.要改变"不可变的对象需要复制并替换.

In one sense, nothing has changed, fundamentally, because objects are immutable, and metadata is part of the object. To "change" an immutable object requires a copy and replace.

但是,S3对象现在支持标记,这是另一类元数据",附加到对象而不是对象的一部分.

However, S3 objects now support tagging, which is a different class of "metadata," attached to -- rather than part of -- the object.

S3对象标记–您可以将多个键值对(标记)与每个S3对象相关联,并能够随时更改它们.标签可用于管理和控制访问,设置S3生命周期策略,自定义S3 Analytics以及过滤CloudWatch指标.您可以将存储桶视为一个数据湖,并使用标签创建该湖内对象的分类法.这比使用存储桶和前缀更加灵活,并且允许您进行语义样式的更改,而无需重命名,移动或复制对象.

S3 Object Tagging – You can associate multiple key-value pairs (tags) with each of your S3 objects, with ability to change them at any time. The tags can be used to manage and control access, set up S3 Lifecycle policies, customize the S3 Analytics, and filter the CloudWatch metrics. You can think of the bucket as a data lake, and use tags to create a taxonomy of the objects within the lake. This is more flexible than using the bucket and a prefix, and allows you to make semantic-style changes without renaming, moving, or copying objects.

-S3存储管理更新,2017年3月20日

另请参阅对象标签和对象元数据之间的区别?

这篇关于在不执行对象复制的情况下使用lambda更新Amazon s3对象元数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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