{
  "id": "aws/ec2-insufficient-instance-capacity",
  "signature": "InsufficientInstanceCapacity: We currently do not have sufficient capacity in the Availability Zone you requested",
  "signature_zh": "实例容量不足：您请求的可用区当前没有足够的容量",
  "regex": "InsufficientInstanceCapacity: We currently do not have sufficient capacity in the Availability Zone",
  "domain": "aws",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "AWS EC2 fleet in the specified Availability Zone lacks available compute capacity for the requested instance type, often due to high demand or resource constraints.",
  "root_cause_type": "generic",
  "root_cause_zh": "指定可用区中的 AWS EC2 实例集群缺乏所请求实例类型的可用计算容量，通常是由于高需求或资源限制。",
  "versions": [
    {
      "version": "ec2-2024-01-01",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "aws-cli/2.17.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Retry the same request repeatedly without changes",
      "why_fails": "AWS capacity is per-AZ and per-instance-type; retrying the same request won't allocate new capacity if it's exhausted across that AZ.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase the instance count in the same request expecting partial fulfillment",
      "why_fails": "The error is a hard capacity check; AWS rejects the entire launch request if any instance cannot be placed, not a partial fulfillment.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Change instance type to a similar but less popular one (e.g., from t3.medium to t3.large or t4g.medium) and relaunch.",
      "success_rate": 0.7,
      "how": "Change instance type to a similar but less popular one (e.g., from t3.medium to t3.large or t4g.medium) and relaunch.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a different Availability Zone or enable 'No Preferred AZ' in Auto Scaling groups. For CLI: `aws ec2 run-instances --placement AvailabilityZone=us-east-1b`",
      "success_rate": 0.8,
      "how": "Use a different Availability Zone or enable 'No Preferred AZ' in Auto Scaling groups. For CLI: `aws ec2 run-instances --placement AvailabilityZone=us-east-1b`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use On-Demand Capacity Reservations or Savings Plans to reserve capacity in advance. Create a reservation: `aws ec2 create-capacity-reservation --instance-type t3.medium --availability-zone us-east-1a --instance-count 5`",
      "success_rate": 0.9,
      "how": "Use On-Demand Capacity Reservations or Savings Plans to reserve capacity in advance. Create a reservation: `aws ec2 create-capacity-reservation --instance-type t3.medium --availability-zone us-east-1a --instance-count 5`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "更改实例类型为类似但不太流行的类型（例如，从 t3.medium 改为 t3.large 或 t4g.medium）并重新启动。",
    "使用不同的可用区，或在 Auto Scaling 组中启用“无首选可用区”。对于 CLI：`aws ec2 run-instances --placement AvailabilityZone=us-east-1b`",
    "使用按需容量预留或 Savings Plans 提前预留容量。创建预留：`aws ec2 create-capacity-reservation --instance-type t3.medium --availability-zone us-east-1a --instance-count 5`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshooting-launch.html#insufficient-instance-capacity",
  "official_doc_section": null,
  "error_code": "InsufficientInstanceCapacity",
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2023-06-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}