turbot/aws_insights

Query: backup_plan_resource_assignment

Usage

powerpipe query aws_insights.query.backup_plan_resource_assignment

SQL

with filtered_backup_plans as (
select
backup_plan_id
from
aws_backup_plan
where
arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4)
)
select
'Resource Assignments' as label,
count(s.selection_name) as value
from
aws_backup_selection s
join
filtered_backup_plans p on s.backup_plan_id = p.backup_plan_id;

Dashboards

The query is used in the dashboards: