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_enabledSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.lambda_function_logging_config_enabled --shareSQL
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_idfrom  aws_lambda_function;