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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南