Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: Lambda functions should be configured with a dead-letter queue

Ensure Lambda functions have a dead-letter queue configured for better error handling

RuleLambda functions should be configured with a dead-letter queue
FrameworkNIST 800-53 Revision 5
Severity
Medium

Rule Description

Lambda functions should be configured with a dead-letter queue to comply with NIST 800-53 Revision 5.

A dead-letter queue is a mechanism provided by AWS Lambda that retains events that Lambda functions were unable to process successfully. By configuring a dead-letter queue, failed events are stored for further analysis and troubleshooting.

Troubleshooting Steps

1. Verify Lambda Function Configuration

  • Ensure that you have the necessary permissions to manage Lambda functions.
  • Log in to the AWS Management Console and navigate to the Lambda service.
  • Select the desired Lambda function.
  • Scroll down to the "Dead letter queue" section in the Configuration tab.

2. Create a Dead-Letter Queue

  • If no dead-letter queue is configured, click on "Edit" in the "Dead letter queue" section.
  • From the drop-down menu, select "Create new queue" to create a new queue to act as a dead-letter queue.
  • Customize the queue settings as per your requirements, such as the queue name and retention period.
  • Click "Save" to save the configuration.

3. Configure Existing Dead-Letter Queue

  • If a dead-letter queue is already available, click on "Edit" in the "Dead letter queue" section.
  • Select the desired dead-letter queue from the drop-down menu.
  • Click "Save" to update the configuration.

Necessary Code

No code is required as this configuration is done through the AWS Management Console.

Step-by-Step Guide for Remediation

  1. 1.
    Log in to the AWS Management Console.
  2. 2.
    Navigate to the Lambda service.
  3. 3.
    Select the Lambda function that needs to be configured with a dead-letter queue.
  4. 4.
    Scroll down to the "Dead letter queue" section in the Configuration tab.
  5. 5.
    If no dead-letter queue is configured, click on "Edit".
  6. 6.
    Select "Create new queue" from the drop-down menu.
  7. 7.
    Customize the queue settings as per your requirements, and click "Save".
  8. 8.
    If a dead-letter queue is already configured, click on "Edit".
  9. 9.
    Select the desired dead-letter queue from the drop-down menu.
  10. 10.
    Click "Save" to update the configuration.
  11. 11.
    Repeat these steps for any other Lambda functions that need to be configured.

Ensure that the dead-letter queue configuration is also documented for future reference and compliance audits.

Is your System Free of Underlying Vulnerabilities?
Find Out Now