Control: Long running instances should be reviewed
Instances should ideally be ephemeral and rehydrated frequently. Check why these instances have been running for so long.
steampipe check alicloud_thrifty.control.ecs_instance_long_running
Plugins & Tables
|$1||ecs_running_instance_age_max_days||The maximum number of days an instance are allowed to run.|
selectarn as resource,casewhen date_part('day', now() - creation_time) > $1 then 'alarm'else 'ok'end as status,title || ' has been running ' || date_part('day', now() - creation_time) || ' days.' as reason,region,account_idfromalicloud_ecs_instancewherestatus = 'Running';