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.
It is not possible to find the caller lambda that triggered the DLQ. At the end, what I have done is:
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.
Thanks for letting me know!