standard
turbot/aws_thrifty

Overview

Older generation instance types are more expensive and less performant than the current generation equivalents, you should be using the latest generation to reduce costs and increase performance.

This pipeline detects older generation EC2 instances and then either sends a notification or attempts to perform a predefined corrective action.

Getting Started

This control will work out-of-the-box with some sensible defaults (configurable via variables).

You should be able to simply run the following command in your terminal:

flowpipe pipeline run detect_and_correct_ec2_instances_of_older_generation

By default, Flowpipe runs in wizard mode and prompts directly in the terminal for a decision on the action(s) to take for each detected resource.

However, you can run Flowpipe in server mode with external integrations, allowing it to prompt for input via http, slack, teams, etc.

Alternatively, you can choose to configure and run in other modes:

  • Notify: Provides detections without taking any corrective action.
  • Automatic: Performs corrective actions automatically without user intervention.

Query

select
concat(instance_id, ' [', region, '/', account_id, ']') as title,
instance_id,
region,
sp_connection_name as conn
from
aws_ec2_instance
where
instance_type like 't2.%'
or instance_type like 'm3.%'
or instance_type like 'm4.%'

Schedule

15m

Tags

category = Cost
class = deprecated
plugin = aws
service = AWS/EC2