Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop an Amazon EC2 instance with "instance store"

I have an EC2 instance with "instance store" device as a root device (I did not know the difference between it and EBS before launching it). I would like to stop it but I can not do it with the command ec2-stop-instances, the output is:

Client.UnsupportedOperation: The instance 'i-XXXXXXXX' does not have an 'ebs' root device type and cannot be stopped.

Does anybody know how to stop it with Windows Console (I am not the owner of the Amazon account and I won't be able to contact with him for weeks)

Thanks in advance.

like image 728
Peter Hamberg Avatar asked Feb 05 '10 12:02

Peter Hamberg


People also ask

How do you stop an AWS EC2 instance?

To terminate an instance using the consoleOpen the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Instances. Select the instance, and choose Actions, Instance State, Terminate. Choose Yes, Terminate when prompted for confirmation.

Does stopping an EC2 instance save money?

Then, open the Amazon EC2 console and terminate or delete any resources that you don't need. Stopped instances don't incur charges, but Elastic IP addresses or EBS volumes attached to those instances do.

What happens when you stop an EC2 instance?

When you stop an EC2 instance, the instance will be shutdown and the virtual machine that was provisioned for you will be permanently taken away and you will no longer be charged for instance usage.

How do I force stop an AWS instance?

You can force an instance to stop using the AWS CLI while the instance is in any state, except shutting-down and terminated . Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Instances and select the stuck instance. Choose Instance state, Force stop instance, Stop.


1 Answers

EC2 instance with "instance store" cannot be stopped. They can only be terminated.

If you would like the ability to stop an instance, I suggest recreating the instance with an EBS root device. These types of instances support the ec2-stop-instances command. You can consider this command as a "pause", since it can be resumed at any time, and you will not be charged for the time the instance is stopped.

Amazon announced the ability to boot instances from an EBS root volume only in December 2009, so you will find that older documentation and tutorials ignore the extended command-set that came with the EBS root volumes.

Further reading: Amazon EC2 Instances Now Can Boot from Amazon EBS


I am not the owner of the Amazon account and I won't be able to contact with him for weeks.

If you really want to "pause" this instance for a few weeks, you can create a machine image (AMI) of your instance and terminate it.

You will then be able to launch a new instance with your private AMI when you want to "resume" this instance. It will not be the same instance, as in it will have a different instance ID and a different IP, but you will be cloning the setup of your instance.

The methods to build an AMI differ if your instance is running Windows or Linux, but you should be able to find adequate information on the web about both scenarios.

like image 60
Daniel Vassallo Avatar answered Oct 14 '22 12:10

Daniel Vassallo