Bobcares

Launch ec2 instance from snapshot

by | Oct 7, 2021

Wondering how to launch ec2 instance from snapshot? We can help you.

Here, at Bobcares, we assist our customers with several AWS queries as part of our AWS Support Services.

Today, let us see steps followed by our Support Techs to perform this task.

How to launch ec2 instance from snapshot?

There are multiple reasons why you might not able to launch or start your EC2 instance.

If you don’t receive an error code when attempting to start the instance, then run the describe-instances command in the AWS Command Line Interface (AWS CLI) .

Then, specify the instance ID to view the reason for the problem.

In the following example, replace EXMPINSTANCE with the id of the instance that you’re trying to start.

aws ec2 describe-instances --instance-id EXMPINSTANCE --output json

Check the StateReason message in the JSON response returned by the command.

In the following example, the StateReason returned is “Client.InternalError”.

"StateReason": {
"Message": "Client.InternalError: Client error on launch",
"Code": "Client.InternalError"
},

Today, let us see the common errors mentioned by our Support techs :

 

InsufficientInstanceCapacity

Error message appears as shown below:

“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.”

This error occurs if there isn’t enough On-Demand capacity to complete your request.

 

InstanceLimitExceeded

Error message as shown below:

“Your quota allows for 0 more running instance(s).”

This error occurs if you launched the maximum allowed instances in your Region.

 

UnauthorizedOperation

The UnauthorizedOperation error indicates that the user attempting to launch the instance doesn’t have the required permissions.

 

The requested configuration is currently not supported.

This error is caused by the following two issues:

1.Firstly, the specified instance type isn’t supported in the requested Availability Zone.

Run the aws ec2 describe-instance-type-offerings command in the AWS CLI to check the availability of the instance types in specific Availability Zones.

Then, launch the instance in a supported Availability Zone.

For example, use the following command to check availability of the c5.2xlarge instance type across all Availability Zones in us-east-1:

aws ec2 describe-instance-type-offerings --location-type availability-zone --filters Name=instance-type,Values=c5.2xlarge --region us-east-1

2.Then, the Amazon Machine Image (AMI) used to launch the instance doesn’t support the selected instance type.

Refer to the AMI description in the AWS Documentation before selecting the instance type or family.

This issue commonly occurs when using Marketplace AMIs and launching them using the AWS CLI.

When launching instances from the Amazon EC2 console, unsupported instances are unavailable.

 

Client.InternalError

There are several reasons you might receive this error:

1. Firstly, an Amazon Elastic Block Store (Amazon EBS) volume isn’t correctly attach to the instance.
2. An EBS volume that’s attach to the instance is in an ERROR state.
3. An encrypted EBS volume is attach to the instance.

However, you don’t have permissions to access the AWS Key Management Services (AWS KMS) for decryption.

 

[Need help with the procedure? We’d be glad to assist you]

Conclusion

In short, we saw how our Support Techs launch ec2 instance from snapshot.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.