More Info:

Monitoring vCPU-based limits for on-demand EC2 instances avoids resource starvation. Service Quotas is an AWS service that enables you to view and manage your quotas from a central location. Quotas, also referred to as limits, are the maximum value for your resources, actions, and items in your AWS account.

Risk Level

Medium

Address

Operational Maturity, Reliability

Compliance Standards

AWSWAF

Triage and Remediation

Remediation

To remediate the misconfiguration “EC2 Instances Should Not Reach vCPU Limit” in AWS using the AWS console, follow the below steps:

  1. Open the AWS Management Console and navigate to the EC2 dashboard.
  2. Select the EC2 instance that is reaching the vCPU limit.
  3. Click on the “Actions” button and select “Instance Settings” and then click on “Change Instance Type”.
  4. Select a larger instance type that provides more vCPUs than the current instance type.
  5. Review the changes and click on “Apply”.
  6. Once the instance type is changed, the instance will have more vCPUs and the vCPU limit will no longer be reached.

Alternatively, you can also use AWS Auto Scaling to automatically adjust the instance type based on the resource utilization of the instance. This will ensure that the instance always has enough vCPUs and other resources to handle the workload.

Additional Reading: