turbot/aws_well_architected

Query: wellarchitected_workload_high_risk_count

Usage

powerpipe query aws_well_architected.query.wellarchitected_workload_high_risk_count

SQL

select
'High Risks' as label,
sum((risk_counts ->> 'HIGH') :: int) as value,
case
sum((risk_counts ->> 'HIGH') :: int)
when 0 then 'ok'
else 'alert'
end as type
from
aws_wellarchitected_lens_review as r
where
r.workload_id = $1
and r.lens_arn = any(string_to_array($2, ','))

Params

ArgsNameDefaultDescriptionVariable
$1workload_id
    $2lens_arn

      Dashboards

      The query is used in the dashboards: