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 réponses
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
répondu il y a 2 ans
profile pictureAWS
EXPERT
Chris_G
vérifié il y a 2 ans
0

thanks that worked!

Adaman
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions