Identify any Amazon EC2 instances that appear to be idle and stop or terminate them to help lower the cost of your AWS bill. By default, an Amazon EC2 instance is considered "idle" when meets the following criteria (to declare the instance "idle" both conditions must be true):
- The average CPU Utilization has been less than 2% for the last 7 days.
- The average Network I/O has been less than 5 MB for the last 7 days.
Note 2: You can change the default threshold for this rule on the Cloud Risk Management Dashboard and set your own values for CPU and Network I/O usage, and the preferred number of days for each condition in order to configure the idleness. The Cloud Risk Management Dashboard also provides information about each Amazon EC2 instance marked as idle such as region, ID, instance type, launch time, operating system, tags and more to help you decide whether to stop or terminate the instance.
This rule can help you with the following compliance standards:
- APRA
- MAS
For further details on compliance standards supported by TrendAI Vision One™ Cloud Risk Management, see here.
This rule can help you work with the AWS Well-Architected Framework.
optimisation
Idle instances represent a good candidate to reduce your Amazon EC2 service costs and avoid accumulating unnecessary Amazon EC2 charges.
Audit
To identify idle Amazon EC2 instances, perform the following operations:
Remediation / Resolution
Option 1: Stop or terminate your idle Amazon EC2 instances. To stop/terminate any idle Amazon EC2 instances available within your AWS cloud account, perform the following actions:
Option 2: Downsize (resize) your idle Amazon EC2 instances. If an EC2 instance can't be stopped or terminated because the EC2 resource plays an important role within your application stack, you can change the instance type for your idle Amazon EC2 instance by performing the following operations:
Option 3: Disable the rule check. If your idle Amazon EC2 instance is an important component of your application stack, you should turn off the rule check for the specified Amazon EC2 instance from the TrendAI Vision One™ Cloud Risk Management Dashboard.
References
- AWS Documentation
- Auto Scaling groups
- Use Capacity Rebalancing to handle Amazon EC2 Spot interruptions
- EC2 instance rebalance recommendations
- AWS Command Line Interface (CLI) Documentation
- autoscaling
- describe-auto-scaling-groups
- update-auto-scaling-group