turbot/aws_insights

Query: ecr_repository_scan_on_push_status

Usage

powerpipe query aws_insights.query.ecr_repository_scan_on_push_status

Steampipe Tables

SQL

select
push_status,
count(*)
from (
select
(image_scanning_configuration ->> 'ScanOnPush')::bool,
case when (image_scanning_configuration ->> 'ScanOnPush')::bool then
'enabled'
else
'disabled'
end push_status
from
aws_ecr_repository) as t
group by
push_status
order by
push_status desc;

Dashboards

The query is used in the dashboards: