I just trying to test my DLQ for Lambda and I do not undesrtand why messages does not put on it. My code just doing 1 thing throw new Exception(\"Test\");.
throw new Exception(\"Test\");
Invoke lambda asynchronously like below, using AWS SDK.
$ aws lambda invoke --function-name my-function --invocation-type Event --payload '{ "key": "value" }' response.json { "StatusCode": 202 }
Docs - https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html