turbot/aws_insights

Query: codebuild_project_logging_disabled

Usage

powerpipe query aws_insights.query.codebuild_project_logging_disabled

Steampipe Tables

SQL

select
count(*) as value,
'Logging Disabled' as label,
case
count(*)
when 0 then 'ok'
else 'alert'
end as "type"
from
aws_codebuild_project
where
not(
(
logs_config -> 'CloudWatchLogs' ->> 'Status' = 'ENABLED'
)
or (logs_config -> 'S3Logs' ->> 'Status' = 'ENABLED')
);

Dashboards

The query is used in the dashboards: