| Did this page help you? Yes No Tell us about it... |
This section describes how to stop and start instances that use Amazon EBS volumes as their root devices.
When an instance is stopped, it is shut down, and any data stored in RAM is not preserved. You're not billed for hourly usage or data transfer, but you're billed for any Amazon EBS volume storage. You can start the instance at any time with a start request. Each time you transition an instance from stopped to started, we charge a full instance hour, even if transitions happen multiple times within a single hour.
![]() | Note |
|---|---|
|
![]() | Important |
|---|---|
If an instance reboots (intentionally or unintentionally), the data on the instance store will survive. However, under the following circumstances the data in the instance store will be lost:
|
To stop and start an instance
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
Click Instances in the Navigation pane.
The console displays a list of running instances.
Select an instance, select Instance Actions, and click Stop Instance.
A confirmation dialog box appears.
Click the Yes, Stop Instance.
The instance is stopped and saved as a snapshot.
To restart the stopped instance, select Stopped Instances from the Viewing list box.
The newly stopped instance appears in the list.
Select the instance, select Instance Actions, and click Start Instance.
The instance begins restarting.
To stop and start an instance
Use the ec2-stop-instances command.
PROMPT>ec2-stop-instancesi-10a64379
Amazon EC2 returns output similar to the following example.
IMAGE i-10a64379 running stopping Use the ec2-start-instances command.
PROMPT>ec2-start-instancesi-10a64379
Amazon EC2 returns output similar to the following example.
IMAGE i-10a64379 stopped pending To stop an instance
Construct the following Query request.
https://ec2.amazonaws.com/ ?Action=StopInstances &InstanceId.1=i-10a64379 &...auth parameters...
Following is an example response.
<StopInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2011-12-15/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<instancesSet>
<item>
<instanceId>exampleinstanceid</instanceId>
<currentState>
<code>64</code>
<name>stopping</name>
</currentState>
<previousState>
<code>16</code>
<name>running</name>
</previousState>
</instancesSet>
</StopInstancesResponse>To start an instance
Construct the following Query request.
https://ec2.amazonaws.com/ ?Action=StartInstances &InstanceId.1=i-10a64379 &...auth parameters...
Following is an example response.
<StartInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2011-12-15/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<instancesSet>
<item>
<instanceId>exampleinstanceid</instanceId>
<currentState>
<code>0</code>
<name>pending</name>
</currentState>
<previousState>
<code>80</code>
<name>stopped</name>
</previousState>
</item>
</instancesSet>
</StartInstancesResponse>