Reputation: 1153
We are using Cloudwatch logs and wanted to do real-time log processing using AWS Lambda. The Cloudwatch subscription is being triggered multiple times. Is there a way to ensure only single trigger.
Upvotes: 2
Views: 543
Reputation: 2085
This is similar to S3 in that you may get multiple invocations for the same event. You need to make your code capable enough to deal with this scenario. Caching a unique identifier or de-duping in some other way. Or just accepting that this will happen from time-to-time. Depends what your requirements are for the log processing.
Upvotes: 2