How do I troubleshoot insufficient capacity errors when starting or launching an EC2 instance?

Last updated: 2019-10-23

I am unable to start or launch my Amazon Elastic Compute Cloud (Amazon EC2) instance, and I'm receiving insufficient capacity errors. How can I troubleshoot this issue? 

Resolution

Error message "An error occurred (InsufficientInstanceCapacity) when calling the RunInstances operation (reached max retries: 4). We currently do not have sufficient capacity in the Availability Zone you requested."

The InsufficientInstanceCapacity error indicates that Amazon Web Services (AWS) doesn't currently have enough available On-Demand capacity to complete your request. For troubleshooting steps, see Insufficient Instance Capacity.

Error message "Your quota allows for 0 more running instance(s)."
Error code
InstanceLimitExceeded

This error indicates that you reached the limit on the number of instances that you can launch in a Region.

You can request an instance limit increase on a per-Region basis. For more information, see Amazon EC2 Service Limits.

Instance terminates immediately after launching or starting an instance

Your instance changes from pending state to terminated state immediately after launching a new instance, or after starting a stopped instance.

To troubleshoot this issue, you must first determine the termination reason using the Amazon EC2 console or AWS Command Line Interface (AWS CLI). Then, follow the troubleshooting steps for that reason. For more information, see Instance Terminates Immediately.