turbot/aws_compliance

Query: ecs_cluster_container_insights_enabled

Usage

powerpipe query aws_compliance.query.ecs_cluster_container_insights_enabled

Steampipe Tables

SQL

select
cluster_arn as resource,
case
when s ->> 'Name' = 'containerInsights' and s ->> 'Value' = 'enabled' then 'ok'
else 'alarm'
end as status,
case
when s ->> 'Name' = 'containerInsights' and s ->> 'Value' = 'enabled' then title || ' Container Insights enabled.'
else title || ' Container Insights disabled.'
end as reason
, region, account_id
from
aws_ecs_cluster as c,
jsonb_array_elements(settings) as s;

Controls

The query is being used by the following controls: