Recently I came across a problem where the admin team should get notified when some user deletes any object from S3 object. If you also have a similar requirement where the team should get notification whenever an object is created, deleted, or modified, this is where event notifications comes into the picture.
You can use AWS S3 Event notifications feature to receive notifications to following destinations when certain events happen in the AWS S3 bucket.
-
Amazon Simple Notification Service (Amazon SNS) topics
-
Amazon Simple Queue Service (Amazon SQS) queues
-
AWS Lambda function
In this article, I will be configuring AWS SQL queues as a destination to track delete event from my S3 bucket.
Configure AWS SQL queues to track delete event from S3 bucket
Step 1
Login to AWS Console
Step 2
Go to S3 bucket and create a new bucket if it does not exist. I have already created a bucket with name ‘mydemobucket198’.

Step 3
Go to Properties.

Step 4
Scroll down to the page until section Event Notification appears. Click on Create event notification button.

Step 5
A window appears to fill details to create a new event notification. I have put ‘s3_notify’ as the event name.

Step 6
A list will appear for events that are currently supported like Object creation, Object removal, etc. I checked Object Removal for this article so whenever any user deletes any S3 object I will get a notification.

Step 7
Go to Destination section where you can choose a destination to publish the event.
I have chosen SQL queues so notification will be sent to SQS queues that can be read later by a server and perform action accordingly.
Choose SQL queues if it's already created or create a new one. As I don't have any existing SQL queues, I will create a new one.










Join the conversation! Your thoughts help the community grow.