Use Lambda to send alert to SNS Topic – but only send email once per unique body
I have an IoT workflow with various devices sending data to an S3 bucket, which triggers a Lambda. The Lambda processes the data and may trigger an alert (e.g. due to DeviceX having a temperature above Y). I wish to receive email alerts when a new device encounters such an alert with a maximum of receiving one email per device per day.
Can events be lost when a lambda with a DLQ is triggered by SNS?
I want to process events from an SNS topic using a lambda function and to keep cost down I don’t want to have an SQS queue in between.