How to get amazon SNS when a large file is uploaded to a S3 folder

0

I was able to set up an SNS notification for a specific file type in a folder on Amazon S3 but I want to restrict the notification emails to be sent only when the file size is bigger than 90MB.

How will I do that?

Adaman
已提问 2 年前762 查看次数
2 回答
3

You can send the S3 Event Notifications to Amazon EventBridge and use Advanced Filtering to filter the metadata's object size. Then set SNS as the target of your EventBridge when an event matches your event pattern.

Check this AWS blog post for more information about using Amazon S3 Event Notifications with Amazon EventBridge. It also contains an example on setting up a pattern that matches events for objects based on the size.

profile picture
joahna
已回答 2 年前
profile pictureAWS
专家
Chris_G
已审核 2 年前
0

thanks that worked!

Adaman
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则