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?

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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠