turbot/aws_compliance

Query: ecs_cluster_no_active_services_count

Usage

powerpipe query aws_compliance.query.ecs_cluster_no_active_services_count

Steampipe Tables

SQL

select
cluster_arn as resource,
case
when active_services_count > 0 then 'ok'
else 'alarm'
end as status,
case
when active_services_count > 0 then title || ' has ' || active_services_count || ' active service(s).'
else title || ' has no active service.'
end as reason
, region, account_id
from
aws_ecs_cluster;

Controls

The query is being used by the following controls: