loading...

re: Event Handling in AWS using SNS, SQS, and Lambda VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Great insight Frank. Thanks. I need to provide a solution through Lambda to notifies an SNS topic when a file is received outside of a specific t...
 

Hi!

I see two options:

1) Configure an S3 event notification towards a Lambda function and in that Lambda check the time of the PUT event. If the time is not compliant, make the Lambda publish to your SNS topic.

2) Configure a scheduled event in CloudWatch that periodically invokes your Lambda (e.g. every hour or every day) and then make the Lambda check for any files that have been uploaded at a non-compliant time.

Option 1 is more real-time but might generate a lot of noise and cost in the case of many files. Option 2 has some lag but you can use it to build a summary about all the files that have been uploaded quite easily.

What do you think?

code of conduct - report abuse