CloudFront ChecksCloudTrail ChecksCloudWatch ChecksCost Explorer ChecksDynamoDB ChecksEBS ChecksEC2 ChecksECS ChecksEKS ChecksElastiCache ChecksEMR ChecksLambda ChecksNetworking ChecksRDS ChecksRedshift ChecksRoute 53 ChecksS3 ChecksSecrets Manager Checks
Dashboard: EC2 Checks
Thrifty EC2 Benchmark
Thrifty developers eliminate their unused and underutilized EC2 instances. This benchmark focuses on finding resources that have not been restarted recently, have low utilization, using very large instance sizes, and reserved instances scheduled to expire within the next 30 days or have expired in the preceding 30 days.
Variables
Variable | Description | Default |
---|---|---|
ec2_instance_allowed_types | A list of allowed instance types. PostgreSQL wildcards are supported. | ["%.nano", "%.micro", "%.small", "%.medium", "%.large", "%.xlarge", "%._xlarge"] |
ec2_instance_avg_cpu_utilization_high | The average CPU utilization required for instances to be considered frequently used. This value should be higher than ec2_instance_avg_cpu_utilization_low . | 35% |
ec2_instance_avg_cpu_utilization_low | The average CPU utilization required for instances to be considered infrequently used. This value should be lower than ec2_instance_avg_cpu_utilization_high . | 20% |
ec2_reserved_instance_expiration_warning_days | The number of days reserved instances can be running before sending a warning. | 30 days |
ec2_running_instance_age_max_days | The maximum number of days instances are allowed to run. | 90 days |
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-aws-thrifty
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select EC2 Checks dashboard.
You could also snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe benchmark run aws_thrifty.benchmark.ec2 --share
Benchmark
This dashboard is automatically generated from the following benchmark:
benchmark.ec2