to my function_handler definition in serverless.yml
But how can i test if the DLQ works?
I changed my function_handler so that it times out because i added time.sleep(120)
But i see no DLQ message in the SNS-Topic.
If i manually write a message to the SNS-Topic in the AWS Console, my DLQ handler sees it immediately.
So how can i provoke a failure of my Lambda function to fire a DLQ message to the SNS-Topic?
Correct. You need to invoke the Lambda asynchronously (via SNS for example). Typically it will attempt to deliver the message three times (the initial plus two retries) and then the message will be put onto the DLQ.