How to create a sample policy to notify S3 events

First, we will be creating an SNS through the management console to send an e-mail to your address and S3 event notifications to receive notifications when objects have been uploaded to your S3 bucket. Before moving to the How to do it… section, let's quickly see what Amazon Simple Notification Service (SNS) is.

Amazon SNS is a web service used to send messages to subscribing endpoints or clients, and consists of two clients, publishers, and subscribers as shown in the following diagram:

  • Publishers asynchronously correspond with subscribers by sending messages to SNS topics
  • Subscribers (for example, web servers, e-mail addresses, Amazon SQS queues, and AWS Lambda functions) receive the message or ...

Get Amazon S3 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.