S3 Events and Batch Operations

Learn how to get a notification for any change in the metadata of an existing object in S3 and how to perform similar operation on multiple objects in an S3 bucket using S3 Batch Operations

S3 events

An event in S3 is defined as a change of an object in a bucket. For example, when an object is added to a bucket, we change the metadata of an existing object, delete an object, and more.

Press + to interact

S3 event notifications

For some of these events, S3 can publish notifications. To publish a notification, we need to define the action on which the notification should be fired and the destination of the notification. These events can be published to AWS services including Amazon SNS topics, Amazon SQS queues,  Lambda function, and EventBridge.

Press + to interact
S3 event notifications
S3 event notifications

The ability of the S3 events to integrate with these services allows us to create fully event-driven architectures.

Example: Image resizing application

To understand it further, let’s consider the classic image processing example. When we add images to a bucket, we can invoke a ...