Ensure Lambda functions have dead-letter queue configured for better error handling.
Rule | Lambda functions should be configured with a dead-letter queue |
Framework | FedRAMP Low Revision 4 |
Severity | ✔ Medium |
Rule Description
In order to comply with FedRAMP Low Revision 4, lambda functions should be configured with a dead-letter queue. A dead-letter queue acts as a safety net for failed executions of lambda functions, allowing you to troubleshoot and analyze the causes of those failures.
Troubleshooting Steps
Necessary Codes
No specific codes are required to comply with this rule as it involves configuration settings and permissions for lambda functions.
Remediation Steps
Follow the step-by-step guide below to configure a dead-letter queue for a lambda function:
CLI Command for Remediation
If you prefer to use the AWS Command Line Interface (CLI) for the remediation steps, you can use the following command:
aws lambda update-function-configuration --function-name <function-name> --dead-letter-config TargetArn=<dead-letter-queue-arn>
Replace
<function-name>
with the name or ARN of the lambda function you want to configure and <dead-letter-queue-arn>
with the ARN of the dead-letter queue.Once executed, the command will update the configuration of the lambda function to use the specified dead-letter queue.
Note: Ensure that you have necessary permissions to perform the required actions using the AWS CLI.