turbot/alicloud_thrifty

GitHub
Loading controls...

Control: Large ECS instances should be reviewed

Description

Large ECS instances are unusual, expensive and should be reviewed.

Usage

Run the control in your terminal:

steampipe check alicloud_thrifty.control.ecs_instance_large

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share alicloud_thrifty.control.ecs_instance_large

Plugins & Tables

Params

ArgsNameDefaultDescriptionVariable
$1ecs_instance_allowed_types
array['%.nano','%.small','%._large','.__large']
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_id
from
alicloud_ecs_instance;

Tags