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 年前檢視次數 774 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南