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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠