turbot/ibm_insights

Query: ibm_is_vpc_no_subnet_count

Usage

powerpipe query ibm_insights.query.ibm_is_vpc_no_subnet_count

Steampipe Tables

SQL

select
count(*) as value,
'VPCs Without Subnets' as label,
case
when count(*) = 0 then 'ok'
else 'alert'
end as type
from
ibm_is_vpc as v
left join ibm_is_subnet as s on v.id = s.vpc ->> 'id'
where
s.id is null;

Dashboards

The query is used in the dashboards: