ExitAmazon S3: Event Notifications1 / 9
Explanationassociate9 steps · 4 exercises

Match a bucket event to a destination

How S3 matches bucket events to notification destinations, what permissions delivery requires, and how to recognize test events and prevent recursive Lambda invocations.

An S3 notification rule selects an event type and can also filter on the object's key. A prefix filter checks how the key starts. Each rule specifies one destination, so the uploads bucket uses separate rules for files under incoming/ and reports under reports/.

Choose an Amazon SNS topic to fan out a message to subscribers, an Amazon SQS queue to hold messages for consumers, or AWS Lambda to invoke a function directly. You can also enable Amazon EventBridge for the bucket and use EventBridge rules to route its events.

incoming/ creationsprocessed objectsreports/ PUTs, test
Uploads bucketAmazon S3 bucket
Processor — allows S3 to invokeAWS Lambda
Dedicated results bucket — no triggerAmazon S3 bucket
Reports topic — allows S3 to publishAmazon Simple Notification Service (Amazon SNS)

Stage 1 of 5: The uploads bucket holds both incoming files and reports. S3 checks the event type and the object's key against its notification rules.

Next up: Find the flaw on what you just read.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.