Articles → AWS → How To Log AWS Lambda Failures Using Dead Letter Queues (DLQ)

How To Log AWS Lambda Failures Using Dead Letter Queues (DLQ)






How Failure Is Handled By Lambda Function?




  1. The first retry happens after 1 minute.
  2. The second retry happens after 2 minutes.



Create A New Policy And A Role




Picture showing creating a new policy with SendMessage permission




Picture showing creating a new role



Create A Lambda Function




Picture showing creating the lambda function with the new role



Create A Queue




Picture showing creating the SQS



Asynchronous Invocation Configuration Of Lambda Function




Picture showing the Asynchronous Invocation option inside the Configuration tab




Picture showing the Edit button for editing the Asynchronous Invocation




Picture showing the edit screen of asynchronous invocation section



Create A Topic And A Subscription




Picture showing creating a subscription



Publish Message




Picture showing the published messages





Posted By  -  Karan Gupta
 
Posted On  -  Monday, October 7, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250