turbot/steampipe-mod-aws-compliance

Control: ECS cluster should be configured with active services

Description

This control checks if ECS cluster have active services. This control fails if ECS cluster does not have any active services.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.ecs_cluster_no_active_services_count

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.ecs_cluster_no_active_services_count --share

SQL

This control uses a named query:

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;

Tags