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.

preguntada hace 2 años332 visualizaciones
1 Respuesta
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
INGENIERO DE SOPORTE
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas