Experiencing InsufficientInstanceCapacity despite using Capacity Reservation

0

Hi folks,

I have a capacity reservation with 1 instance available for use:

$ aws ec2 describe-capacity-reservations --capacity-reservation-ids cr-00d78c6805551161a
{
    "CapacityReservations": [
        {
            "CapacityReservationId": "cr-00d78c6805551161a",
...
            "InstanceType": "c5n.9xlarge",
            "InstancePlatform": "Linux/UNIX",
            "AvailabilityZone": "us-east-1d",
...
            "AvailableInstanceCount": 1,
...
} 

I also have a stopped instance with matching instance type/platform/AZ assigned to this capacity:


$ aws ec2 describe-instances --instance-ids $myinstance
{
    "Reservations": [
        {
            "Groups": [],
            "Instances": [
                {
                    "AmiLaunchIndex": 0,
                    "ImageId": "ami-6ed35e06",
                    "InstanceId": "i-2d1ff5cc",
                    "InstanceType": "c5n.9xlarge",
....
 "Placement": {
                         "AvailabilityZone": "us-east-1d",
....
                    },
                    "CapacityReservationSpecification": {
                        "CapacityReservationTarget": {
                            "CapacityReservationId": "cr-00d78c6805551161a"
                        }
                    },
....
                  "PlatformDetails": "Linux/UNIX",
....
}

However I cannot start it:


$ aws ec2 start-instances --instance-ids $myinstance

An error occurred (InsufficientInstanceCapacity) when calling the StartInstances operation (reached max retries: 2): Insufficient capacity.

I must be confused as I would expect that the capacity reservation would be used.

Why does the instance fail to start?

I asked AWS support 2 days ago, but haven't made progress yet.

已提问 2 年前330 查看次数
1 回答
0

Attaching the document link that confirms the finding about Placement Groups and On-Demand Capacity Reservations:

Which says, Capacity Reservations can't be created in placement groups.


Thank you for confirming the response you received from the internal team. Through AWS Support cases, AWS engineers are able to check instance configurations at a much more granular level.

AWS
支持工程师
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则