turbot/steampipe-mod-aws-compliance

Control: Ensure Lambda function logging config is enabled

Description

Ensure that AWS Lambda function logging config is enabled for your Amazon Lambda functions for enhanced monitoring.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.lambda_function_logging_config_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when logging_config is null then 'alarm'
else 'ok'
end as status,
case
when logging_config is null then title || ' logging config is not enabled.'
else title || ' logging config is enabled.'
end as reason
, region, account_id
from
aws_lambda_function;

Tags