turbot/aws_insights

Query: emr_cluster_age_table

Usage

powerpipe query aws_insights.query.emr_cluster_age_table

SQL

select
c.id as "Cluster ID",
c.name as "Name",
now()::date - (c.status -> 'Timeline' ->> 'CreationDateTime')::date as "Age in Days",
c.status -> 'Timeline' ->> 'CreationDateTime' as "Creation Time",
c.state as "State",
a.title as "Account",
c.account_id as "Account ID",
c.region as "Region",
c.cluster_arn as "ARN"
from
aws_emr_cluster as c,
aws_account as a
where
c.account_id = a.account_id
order by
c.status -> 'Timeline' ->> 'CreationDateTime',
c.id;

Dashboards

The query is used in the dashboards: