I have a .Net Core Web API application that uploads files on s3 bucket whenever a person uploads something on the app. The app sends messages to amazon SQS from s3 whenever a file is uploaded. The problem is, I want to only send (from s3) or receive messages (in SQS) for specific files, not all of them. Is there a way I can filter the messages using specific attributes?
Please upload a code snippet with the answer if possible. I will appreciate the help!
Instead of filtering message at SQS level, better to filter notification at S3.
By doing you will also saving compute cost and SQS cost as only relevant messages will be sent to SQS when prefix matched.