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 Answer
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
answered a month ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions