turbot/steampipe-mod-aws-compliance

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

Description

Enable this rule to help notify the appropriate personnel through AWS Simple Queue Service (AWS SQS) or AWS Simple Notification Service (AWS SNS) when a function has failed.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.lambda_function_dead_letter_queue_configured

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.lambda_function_dead_letter_queue_configured --share

SQL

This control uses a named query:

select
arn as resource,
case
when dead_letter_config_target_arn is null then 'alarm'
else 'ok'
end as status,
case
when dead_letter_config_target_arn is null then title || ' configured with dead-letter queue.'
else title || ' not configured with dead-letter queue.'
end as reason
, region, account_id
from
aws_lambda_function;

Tags