Control: Large ECS instances should be reviewed
Description
Large ECS instances are unusual, expensive and should be reviewed.
Usage
steampipe check alicloud_thrifty.control.ecs_instance_large
Plugins & Tables
Params
Args | Name | Default | Description | Variable |
---|---|---|---|---|
$1 | ecs_instance_allowed_types |
| A list of allowed instance types. PostgreSQL wildcards are supported. |
SQL
select arn as resource, case when status not in ('Running', 'Pending', 'Starting') then 'info' when instance_type like any ($1) then 'ok' else 'alarm' end as status, title || ' has type ' || instance_type || ' and is ' || status || '.' as reason, region, account_idfrom alicloud_ecs_instance;