turbot/alicloud_insights

Query: ecs_instance_age_table

Usage

powerpipe query alicloud_insights.query.ecs_instance_age_table

SQL

select
i.tags ->> 'Name' as "Name",
i.instance_id as "Instance ID",
now()::date - i.creation_time::date as "Age in Days",
i.creation_time as "Start Time",
i.status as "State",
a.title as "Account",
i.account_id as "Account ID",
i.region as "Region",
i.arn as "ARN"
from
alicloud_ecs_instance as i,
alicloud_account as a
where
i.account_id = a.account_id
order by
i.creation_time,
i.tags ->> 'Name';

Dashboards

The query is used in the dashboards: