turbot/aws_insights

Query: codebuild_project_logging_enabled

Usage

powerpipe query aws_insights.query.codebuild_project_logging_enabled

Steampipe Tables

SQL

with enabled as (
select
case
when logs_config -> 'CloudWatchLogs' ->> 'Status' = 'ENABLED'
or logs_config -> 'S3Logs' ->> 'Status' = 'ENABLED' then true
else false
end as logging_value
from
aws_codebuild_project
where
arn = $1
)
select
'Logging' as label,
case
when logging_value then 'Enabled'
else 'Disabled'
end as value,
case
when logging_value then 'ok'
else 'alert'
end as type
from
enabled

Dashboards

The query is used in the dashboards: