DEV Community

Discussion on: Using AWS Lambda to improve Lambda Error Reports

Collapse
bargom profile image
bargom

It is not possible to find the caller lambda that triggered the DLQ. At the end, what I have done is:

  • Create an SNS topic for the DLQ of each lambda,
  • Use a prefix and lambda name in the Topic of SNS,
  • Resolve the lambda name from the topic (in the event topic is coming).

So, at the end if you have a lambda named "my-calculator-lambda", the dead letter queue SNS topic name becomes DLQ-my-calculator-lambda: here DLQ is the hardcoded prefix.

Hope that helps.

Collapse
hoelzro profile image
Rob Hoelz Author

Thanks for letting me know!