Control: Large EC2 instances should be reviewed
Description
Large EC2 instances are unusual, expensive and should be reviewed.
Usage
Run the control in your terminal:
powerpipe control run aws_thrifty.control.large_ec2_instances
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_thrifty.control.large_ec2_instances --share
Steampipe Tables
Params
Args | Name | Default | Description | Variable |
---|---|---|---|---|
$1 | ec2_instance_allowed_types |
| A list of allowed instance types. PostgreSQL wildcards are supported. |
SQL
select arn as resource, case when instance_state not in ('running', 'pending', 'rebooting') then 'info' when instance_type like any ($1) then 'ok' else 'alarm' end as status, title || ' has type ' || instance_type || ' and is ' || instance_state || '.' as reason , region, account_idfrom aws_ec2_instance;