turbot/aws_compliance

Query: lambda_function_cloudwatch_insights_enabled

Usage

powerpipe query aws_compliance.query.lambda_function_cloudwatch_insights_enabled

Steampipe Tables

SQL

select
arn as resource,
case
when exists (
select 1
from jsonb_array_elements(layers) as l
where l ->> 'Arn' like '%:layer:LambdaInsightsExtension:%'
) then 'ok'
else 'alarm'
end as status,
case
when exists (
select 1
from jsonb_array_elements(layers) as l
where l ->> 'Arn' like '%:layer:LambdaInsightsExtension:%'
) then title || ' CloudWatch Insights enabled.'
else title || ' CloudWatch Insights disabled.'
end as reason
, region, account_id
from
aws_lambda_function;

Controls

The query is being used by the following controls: