Users delete files from their S3 bucket
Mukesh Kumar Rao
Lead Security Consultant | Specializing in AWS, Azure, Blue Team, and Red Team | Enhancing the Organizational Security Defenses with Proven Strategies & Solutions
AWS PRACTICE ASSIGNMENT
Your company wants to be notified when users delete files from their Amazon S3 bucket.
You will need to do the following:
1. Configure an SNS topic
2. Add your email address as a subscriber to the topic
3. Configure the topic policy to allow permissions from other resources
4. Configure an S3 event for the delete
5. Verify that your event notification worked.
1. Login to the SNS dashboard.
2. Click on “Create Topic”.
3. Enter a topic name and click on “Create Topic”.
4. Click on the new topic and select “Create Subscription”.
5. Select the “Protocol” as “Email”.
6. Select the “Endpoint” as your email address.
7. Click “Create Subscription”.
8. Check your email and verify the subscription on the email from AWS.
9. Click on “Other Topic Actions” and “Edit Topic Policy”.
10. Change “Allow these users to publish messages to this topic” to “Everyone”.
11. Click on “Update Policy”.
12. Switch to the S3 dashboard.
13. Click on a bucket and select “Events” from the “Properties” section.
14. Enter the following details:
Name: S3DELETE
Events: Select “delete”
Send To: SNS Topic
SNS Topic: Enter the name of the topic you created in the SNS dashboard
Click on “Save”.
15. Delete an object from your bucket and wait for an email to arrive that informs you of the file deletion.