< Back

Setup integration: Amazon S3 Event Notification

You need to set up an AWS SNS HTTPS endpoint for this integration!

Amazon S3 can store any amount of data with fast retrieval. Receive S3 Event Notifications when events such as new object created, object deleted, or Reduced Redundancy Storage (RRS) object lost happen in your bucket. S3 provides sophisticated ways to filter events based on type and key filtering (prefix and suffix).

Before you can start to set up S3 Event Notifications, you have to make one change to the SNS topic endpoint that is required for this integration. You have to allow S3 to send messages to your topic.

Allowing AWS to send messages to your topic

  1. Visit https://console.aws.amazon.com/sns/?region=us-east-1
  2. Click on the Topics link on the left
  3. Select the topic that you created for marbot
  4. Click on the Actions button, where you click on the Edit topic policy link.
    Edit SNS topic policy
  5. Select the Advanced view tab

If this is the first time you edit the SNS topic policy, you should see a default entry like this:

"Version": "2008-10-17",
"Id": "__default_policy_ID",
"Statement": [
"Sid": "__default_statement_ID",
"Effect": "Allow",
"Principal": {
"AWS": "*"

You have to add an entry to the Statement array:

"Sid": "AmazonS3EventNotifications",
"Effect": "Allow",
"Principal": {
"Service": "s3.amazonaws.com"
"Action": "sns:Publish",
"Resource": "ARN"
  1. Replace ARN with your SNS topic ARN that you created for marbot.
  2. Click on the Update policy button to save the policy.

Save SNS topic policy

Now, AWS is allowed to send messages to your topic.

Enabling S3 Event Notifications

  1. Visit https://s3.console.aws.amazon.com/s3/home?region=us-east-1
  2. Select a S3 bucket
  3. Click on the Properties tab
  4. Under Advanced settings, click on Events
  5. Click Add notification button
  6. Provide a Name
  7. Select Events ObjectCreate (All)
  8. Leave Prefix and Suffix empty
  9. Set Sent to to SNS topic
  10. Set SNS to marbot or your other SNS topic name
  11. Save by clicking the Save button.
    Enabling S3 Event Notifications

Sample Alert

You can simulate an alert by uploading an object to the bucket.

You should receive an alert in Slack:

ElastiCache Notification

More help needed? Or want to share feedback?

If you experience any issues, let us know.

E-mail icon
marbot teaser

Chatbot for AWS Monitoring

Configure monitoring for Amazon Web Services: CloudWatch, EC2, RDS, EB, Lambda, and more. Receive and manage alerts via Slack. Solve incidents as a team.

Add to Slack
Microsoft Teams
Add to Teams