- Newest
- Most votes
- Most comments
When you encounter an "Insufficient capacity" error while trying to restart a stopped instance, it means AWS currently doesn't have enough available On-Demand capacity to fulfill your request in that specific Availability Zone (AZ). However, there are a few options you can try to resolve this issue:
-
Wait and retry: Instance capacity can shift frequently. You can wait a few minutes and then try to start your instance again.
-
Create a new instance from a snapshot in a different AZ: This is a good option if you need to preserve your data and configuration. Here's how you can do it:
a. Take a snapshot of your stopped instance. b. Use this snapshot to create a new instance in a different AZ within the same region. c. When creating the new instance, select an AZ that's different from your original instance. For example, if your original instance was in us-east-2a, you might choose us-east-2b or us-east-2c.
-
Change the instance type: If waiting or changing AZs doesn't work, you could try changing to a different instance type that might have more available capacity. You can do this by modifying the instance type while it's stopped.
It's important to note that you cannot directly move a stopped instance to a different AZ. Creating a new instance from a snapshot in a different AZ is the recommended approach to preserve your data and configuration while addressing the capacity issue.
Remember to synchronize your code and data before taking the snapshot to ensure you have the most up-to-date version in your new instance. After creating the new instance in a different AZ, you can access it, finish synchronizing your code, and then terminate the original instance if it's no longer needed.
Sources
Resolve insufficient instance capacity errors in Lightsail - Amazon Lightsail
Insufficient capacity to restart my tiny EC2 instance | AWS re:Post
Troubleshoot Amazon EC2 instance launch issues - Amazon Elastic Compute Cloud
Relevant content
asked 3 years ago
asked 3 years ago
asked 3 years ago
