Vicky
Vicky

Reputation: 149

How do I add an alert for when something has been added to a specific folder in an S3 bucket?

I have an S3 bucket and would like an alert to go off when something has been added to the data_errors folder only.

I have already done some research and noticed I can add an event for an S3 bucket for POST command but it doesn't really tell me how to specify a specific folder.

Is there a way? Sorry, it's not clear from the docs.

Upvotes: 0

Views: 648

Answers (2)

John Rotenstein
John Rotenstein

Reputation: 270224

When configuring the Amazon S3 Event, you can specify a Prefix. This is effectively the same as a folder name:

S3 Event

You can configure the event to send a message to an Amazon SNS topic (great for sending email notifications) or an Amazon SQS queue, or to trigger an AWS Lambda function.

Upvotes: 0

Madhan S
Madhan S

Reputation: 937

Yes you can , There is a Prefix option available while adding an event, you need to set it to "data_errors/"

Upvotes: 1

Related Questions