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.
{ "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
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.
As a Director of Eternal Web Private Ltd an AWS consulting partner company, Nirav is responsible for its operations. AWS, cloud-computing and digital transformation are some of his favorite topics to talk about. His key focus is to help enterprises adopt technology, to solve their business problem with the right cloud solutions.
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.