AWS Root login Notification

September 10, 2021 / Nirav Shah

If you have a large number of users of the S3 bucket, You want to monitor specific events or all events that occur in the bucket. That you can monitor via Email or SMS notification.

  • Create S3 bucket with public access or restricted public access.
    AWS root login notification setup guide
  • Create an SNS Topic.
    AWS root account login alert notification
  • And create an email subscription.
    CloudWatch AWS root login alarm notification
  • And confirmation send to the given email address
    Confirm subscription.
  • In the SNS topic,
    Edit Access Policy
    Paste this policy in Access Policy.
{
  "Version": "2008-10-17",
  "Id": "__default_policy_ID",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "*"
      },
      "Action": "SNS:Publish",
      "Resource": "your sns topic arn",
      "Condition": {
        "StringEquals": {
          "aws:SourceArn": "your s3 bucket arn"
        }
      }
    }
  ]
}

Note

  • Instead of your sns topic arn ==== Paste your SNS topic arn Instead of your s3 bucket arn ==== Paste your S3 bucket arn.
    AWS root account login SNS notification setup
  • Now Go to Created Bucket in the Properties section.
    AWS root login notification setup
  • Go to Create event notification.
    AWS root login notification setup
  • In Event Type, You can choose all events if you wish to get the notification for all events. In choosing Put and Delete events.
    AWS root login notification setup
  • In destination, Select the SNS topic that you created before.
    AWS root login notification setup

And Save Changes.

Now try to upload an object in the s3 bucket, After uploading successfully you will get an email notification.

Now try to delete the object in the s3 bucket, you will get an email notification.

This way, You can also get notifications for all events in the S3 bucket.

Talk to AWS Certified Consultant

    Spread Love By Sharing:

    Let’s Talk About Your Needed AWS Infrastructure Management Services

    Have queries about your project idea or concept? Please drop in your project details to discuss with our AWS Global Cloud Infrastructure service specialists and consultants.

    • Swift Hiring and Onboarding
    • Experienced and Trained AWS Team
    • Quality Consulting and Programming
    Let’s Connect and Discuss Your Project