turbot/aws_insights

Query: ecs_cluster_container_insights_enabled

Usage

powerpipe query aws_insights.query.ecs_cluster_container_insights_enabled

Steampipe Tables

SQL

select
'Container Insights' as label,
case when s ->> 'Name' = 'containerInsights' and s ->> 'Value' = 'enabled' then 'Enabled' else 'Disabled' end as value,
case when s ->> 'Name' = 'containerInsights' and s ->> 'Value' = 'enabled' then 'ok' else 'alert' end as type
from
aws_ecs_cluster as c,
jsonb_array_elements(settings) as s
where
cluster_arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4);

Dashboards

The query is used in the dashboards: