turbot/digitalocean_insights

Query: droplet_by_firewall_status

Usage

powerpipe query digitalocean_insights.query.droplet_by_firewall_status

Steampipe Tables

SQL

with database as (
select
case
when jsonb_array_length(firewall_rules) = 0 then 'disabled'
else 'enabled'
end as firewall_status
from
digitalocean_database
)
select
firewall_status,
count(*) as "Clusters"
from
database
group by
firewall_status;

Dashboards

The query is used in the dashboards: