What S3 event notifications to watch for all object creation and deletions?

0

I have a use case for tracking all object creation and deletions in a bucket irrespective of how these happen. I thought initially tracking only s3:ObjectCreated and s3:ObjectRemoved event types is enough.

Looking at AWS docs, it seems there are 2 other event types that may be useful for tracking object creation / deletions:

  • s3:ObjectRestore:* - could mean both object creation and deletion
  • s3:LifecycleExpiration:* - could mean object deletion

Do s3:ObjectRestore and s3:LifecycleExpiration also create corresponding s3:ObjectCreated or s3:ObjectRemoved ? Or do I have to track those separately?

1 回答
0

Hello,

s3:ObjectRestore:* or s3:LifecycleExpiration:* will not create/include s3:ObjectCreated:* or s3:ObjectRemoved:* events.

By using the ObjectRestore event types, you can receive notifications for event initiation and completion when restoring objects from the archive storage class. Similarly, By using the LifecycleExpiration event types, you can receive a notification when Amazon S3 deletes an object based on your S3 Lifecycle configuration.

Per documentation s3:ObjectRemoved event notifications don't alert you for automatic deletes from lifecycle configurations or from failed operations.

So you have to track these events separately as they alert you for different actions.

AWS
已回答 2 个月前
profile picture
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则