aws quota_error ai_generated partial

An error occurred (LimitExceededException) when calling the X operation

ID: aws/limit-exceeded

Also available as: JSON · Markdown
75%Fix Rate
85%Confidence
50Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
2 active

Root Cause

AWS service limit reached. Each service has default limits that can be increased.

generic

Workarounds

  1. 90% success Request a limit increase through AWS Service Quotas console
    # Via CLI:
    aws service-quotas request-service-quota-increase \
      --service-code ec2 \
      --quota-code L-1216C47A \
      --desired-value 100
    
    # Or open the Service Quotas console: https://console.aws.amazon.com/servicequotas/
    # Navigate to the service, find the quota, and click 'Request quota increase'. Approval typically takes 1-3 business days.

    Sources: https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html

  2. 88% success Check current usage: aws service-quotas list-service-quotas
    aws service-quotas list-service-quotas

    Sources: https://docs.aws.amazon.com/cli/latest/reference/service-quotas/

  3. 80% success Clean up unused resources to free capacity under the limit
    # List resources to identify unused ones. Examples:
    aws ec2 describe-instances --filters Name=instance-state-name,Values=stopped
    aws ec2 describe-addresses --filters Name=association-id,Values=''
    aws ec2 describe-snapshots --owner-ids self --query 'Snapshots[?StartTime<`2024-01-01`]'
    
    # Use AWS Trusted Advisor or Cost Explorer to identify idle resources. Terminate stopped instances, release unassociated EIPs, and delete old snapshots.

    Sources: https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html

Dead Ends

Common approaches that don't work:

  1. Create a new AWS account 85% fail

    Limits apply per-account but new accounts have LOWER limits

  2. Use a different region 60% fail

    Limits are usually per-region but this isn't a real solution

Error Chain

Frequently confused with: