wellarchitected_lens_inputwellarchitected_workload_answered_question_countwellarchitected_workload_countwellarchitected_workload_high_issue_countwellarchitected_workload_high_medium_risk_countswellarchitected_workload_high_risk_countwellarchitected_workload_inputwellarchitected_workload_lens_risk_tablewellarchitected_workload_medium_issue_countwellarchitected_workload_medium_risk_countwellarchitected_workload_milestone_lens_review_risk_countswellarchitected_workload_milestone_risk_countswellarchitected_workload_milestone_risk_tablewellarchitected_workload_milestone_unanswered_tablewellarchitected_workload_no_improvements_risk_countwellarchitected_workload_not_applicable_risk_countwellarchitected_workload_pillar_risk_tablewellarchitected_workload_risk_count_tablewellarchitected_workload_risks_by_lenswellarchitected_workload_risks_by_milestonewellarchitected_workload_risks_by_pillarwellarchitected_workload_unanswered_by_milestonewellarchitected_workload_with_high_issue_countwellarchitected_workload_with_medium_issue_count
Query: wellarchitected_workload_milestone_lens_review_risk_counts
Usage
powerpipe query aws_well_architected.query.wellarchitected_workload_milestone_lens_review_risk_counts
Steampipe Tables
SQL
-- Get current version's lens reviewselect r.workload_id, r.milestone_number, r.lens_arn, jsonb_pretty(r.risk_counts) as lens_risk_counts, p ->> 'PillarId' as pillar_id, p ->> 'PillarName' as pillar_name, p -> 'RiskCounts' as pillar_risk_countsfrom aws_wellarchitected_lens_review as r, jsonb_array_elements(pillar_review_summaries) as punion-- Get past milestone lens reviewsselect r.workload_id, r.milestone_number, r.lens_arn, jsonb_pretty(r.risk_counts) as lens_risk_counts, p ->> 'PillarId' as pillar_id, p ->> 'PillarName' as pillar_name, p -> 'RiskCounts' as pillar_risk_countsfrom aws_wellarchitected_milestone as m left join aws_wellarchitected_lens_review as r on m.milestone_number = r.milestone_number, jsonb_array_elements(pillar_review_summaries) as p