turbot/aws_insights

Query: sns_topic_by_subscription_count

Usage

powerpipe query aws_insights.query.sns_topic_by_subscription_count

Steampipe Tables

SQL

select
count(*) as value,
'No Subscriptions' as label,
case count(*) when 0 then 'ok' else 'alert' end as "type"
from
aws_sns_topic
where
subscriptions_confirmed::int = 0;

Dashboards

The query is used in the dashboards: