turbot/digitalocean_insights

Query: droplet_publicly_accessible

Usage

powerpipe query digitalocean_insights.query.droplet_publicly_accessible

Steampipe Tables

SQL

select
count(*) as value,
'Publicly Accessible' as label,
case
count(*)
when 0 then 'ok'
else 'alert'
end as "type"
from
digitalocean_droplet
where
image ->> 'public' = 'true';

Dashboards

The query is used in the dashboards: