More Info:

You should configure a dead letter queue (DLQ) on AWS Lambda to give you more control over message handling for all asynchronous invocations.

Risk Level

Informational

Address

Security

Compliance Standards

HIPAA, SOC2, PCIDSS, NIST

Triage and Remediation

Remediation

To remediate the misconfiguration “AWS Lambda Should Have DLQ Configured” in AWS using AWS console, follow the steps below:

  1. Open the AWS Management Console and navigate to the AWS Lambda service.

  2. Select the Lambda function that needs to be remediated.

  3. In the Configuration tab, scroll down to the “Dead letter queue” section and click on “Edit”.

  4. In the “Dead letter queue” section, select “Enable” and then select an existing SNS topic or create a new one.

  5. Set the maximum number of times the function can retry failed executions. This is the number of times that AWS Lambda attempts to run your function before sending the event to the dead letter queue.

  6. Click on “Save” to save the configuration.

  7. Verify that the Dead Letter Queue is configured properly by testing the Lambda function with a sample event.

By following these steps, you have successfully remediated the misconfiguration “AWS Lambda Should Have DLQ Configured” in AWS using the AWS console.

Additional Reading: