I have the following flow
SNS_topic1 -> Lambda_1 -> SNS_topic2 ( via DLQ ) -> lambda_1
( basically trying to rerun failed lambda again)
but on the 2nd execution i', getting the likes of
ERROR Invoke Error {"errorType":"TypeError","errorMessage":"Cannot
read property 'toString' of undefined",..
( it's a Node lambda)
my guess is that the DLQ (SNS_topic2) part is wrapping the original event into something that my poor lambda_1 can't handle, but couldn't figure out what..
i was looking at Amazon SNS raw message delivery but apparently that is only relevant if the subscription is to
Kinesis Data Firehose, Amazon SQS, or HTTP/S endpoint
Is the solution a dedicated lambda_2 that would handle the wrapped message, or is there a way to reuse the lambda_1?
question from:
https://stackoverflow.com/questions/65885751/what-format-is-the-the-dlq-message-to-sns-from-a-lambdas-dlq 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…