turbot/alicloud_insights

Query: oss_bucket_by_logging_status

Usage

powerpipe query alicloud_insights.query.oss_bucket_by_logging_status

Steampipe Tables

SQL

with logging_status as (
select
case when logging ->> 'TargetBucket' = '' then 'disabled' else 'enabled'
end as status
from
alicloud_oss_bucket
)
select
status,
count(*)
from
logging_status
group by
status;

Dashboards

The query is used in the dashboards: