Using Console
Using CLI
<function-name>
with the name of the Lambda function that needs to be remediated and <arn-of-the-SQS-queue>
with the ARN of the SQS queue that should be used as the DLQ for this function.
<function-name>
with the name of the Lambda function that was remediated.
<arn-of-the-SQS-queue>
with the ARN of the SQS queue and <arn-of-the-Lambda-function>
with the ARN of the Lambda function that was remediated.
<function-name>
with the name of the Lambda function that was remediated.
Using Python
update_function_configuration
method to set the DLQ configuration for a Lambda function. The DeadLetterConfig
parameter takes a dictionary with the TargetArn
and MaxTriggers
values. The TargetArn
is the ARN of the SQS queue to use as the DLQ, and MaxTriggers
is the maximum number of times a message can be unsuccessfully processed before being sent to the DLQ.