turbot/aws_thrifty

Control: EC2 instances should not use older generation t2, m3, and m4 instance types

Description

EC2 instances should not use older generation t2, m3, and m4 instance types as t3 and m5 are more cost effective.

Usage

Run the control in your terminal:

powerpipe control run aws_thrifty.control.ec2_instance_older_generation

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_thrifty.control.ec2_instance_older_generation --share

Steampipe Tables

SQL

select
arn as resource,
case
when instance_type like 't2.%' or instance_type like 'm3.%' or instance_type like 'm4.%' then 'alarm'
else 'ok'
end as status,
title || ' has used ' || instance_type || '.' as reason
, region, account_id
from
aws_ec2_instance;

Tags