turbot/aws_insights

Query: codebuild_project_logging_status

Usage

powerpipe query aws_insights.query.codebuild_project_logging_status

Steampipe Tables

SQL

select
logging_status,
count(*)
from (
select
logs_config -> 'CloudWatchLogs' ->> 'Status',
logs_config -> 'S3Logs' ->> 'Status',
case when (logs_config -> 'CloudWatchLogs' ->> 'Status' = 'ENABLED') or (logs_config -> 'S3Logs' ->> 'Status' = 'ENABLED') then
'enabled'
else
'disabled'
end logging_status
from
aws_codebuild_project) as t
group by
logging_status
order by
logging_status desc;

Dashboards

The query is used in the dashboards: