S3 can send notifications when specific events occur on objects.
Common events:
s3:ObjectCreated
(upload or copy)
s3:ObjectRemoved
(delete)
s3:ObjectRestore
(Glacier restore)
s3:Replication
status changes
Key features:
- Object name filtering by prefix/suffix (e.g.,
.jpg
).
- Multiple event notifications per bucket.
- Typical delivery in seconds, but may take longer.
- Use cases: trigger Lambda to process uploads, send messages to SQS/SNS.
Destinations:
- SNS topic
- SQS queue
- Lambda function
Permissions:
- Target services must have a resource-based policy allowing
s3.amazonaws.com
to publish/send/invoke, restricted byaws:SourceArn
of the bucket.
Amazon S3 – Event Notifications via EventBridge
Instead of the basic notification system, S3 can send all events to Amazon EventBridge.
Advantages:
- Advanced JSON-based filtering (by metadata, size, object name, etc.).
- Route events to 18+ AWS services, including Step Functions, Kinesis, Lambda, SNS, SQS.
- Supports event archiving, replay, and reliable delivery.