Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
405 views
in Technique[技术] by (71.8m points)

amazon web services - What format is the the DLQ message to SNS from a Lambda's DLQ?

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...