views:

960

answers:

1

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.

+1  A: 

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.

Daniel Vassallo
If you take the advice to create an AMI and then terminate the running instance, make sure you can successfully start a new instance from your AMI first !
gareth_bowles
@gareth: Yes good point... check that the new AMI can start, before terminating your instance.
Daniel Vassallo