Open In App

Amazon Web Services – Amazon S3 Notifications to SNS

In this article, we will see how the Amazon S3 bucket publishes notifications to SNS topics on object creation events. An object that creates an event is of four types. They are Put, Post, Copy, Multipart Upload, Remove, Replicate and Restore. Thus, whenever any of the event occur in our S3 bucket, it will publish a notification to a topic and the subscribers to that topic can view those messages.

Approach:



  1. Create an SNS topic, say, GeeksTopic.
  2. Create subscribers under the topic.
  3. Create an S3 bucket, say, geeksforgeeks.
  4. Create event notifications under that bucket and configure them to the created topic.
  5. Upload object in the bucket.
  6. View message received by the subscriber.

The above approach has been implemented below.



We have successfully configured an event to SNS and are able to view messages through subscribers.

Article Tags :