Lambda does not put message in dlq

前端 未结 2 1571
温柔的废话
温柔的废话 2021-01-27 03:35

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\");.

2条回答
  •  有刺的猬
    2021-01-27 04:22

    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

提交回复
热议问题