Ensure that AWS Lambda function is configured for a Dead Letter Queue

A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. It helps to debug the failures and find the gaps if any.

Risk Level: Low
Cloud Entity: AWS Lambda
CloudGuard Rule ID: D9.CFT.OPE.09
Covered by Spectral: Yes
Category: Compute

GSL LOGIC

AWS_Lambda_Function should have DeadLetterConfig.TargetArn

REMEDIATION

From CFT
Set AWS::Lambda::Function DeadLetterConfig.TargetArn to an appropriate target arn.

References

  1. https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq
  2. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html

AWS Lambda

AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume - there is no charge when your code is not running.

With Lambda, you can run code for virtually any type of application or backend service - all with zero administration. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.

Compliance Frameworks

  • AWS CloudFormation ruleset