You can stop and start your instance if it has an Amazon EBS volume as its root device. The instance retains its instance ID, but can be modified as described in the section. When you stop an instance, the instance shuts down. When you start an instance, the instance is typically migrated to a new underlying host computer and assigned a new public IPv4 address. Show
When you stop an instance, it is not deleted. If you decide that you no longer need an instance, you can terminate it. For more information, see Terminate your instance. If you want to hibernate an instance to save the contents from the instance memory (RAM), see Hibernate your On-Demand Instance or Spot Instance. For distinctions between instance lifecycle actions, see . AWS can schedule events for your instances, such as reboot, stop/start, or retirement. For information about the type of scheduled events that are managed by AWS, and how to view and receive notifications about scheduled events, see Scheduled events for your instances. The following diagram shows what is lost and what persists when an Amazon EC2 instance is stopped. When an instance stops, it loses any attached instance store volumes and the data stored on those volumes, the data stored on the instance RAM, and the assigned public IPv4 address if an Elastic IP address is not associated with the instance. An instance retains assigned private IPv4 addresses, Elastic IP addresses associated with the instance, any IPv6 addresses, and any attached Amazon EBS volumes and the data on those volumes. ![
TopicsCosts related to starting and stopping an instanceThe following costs are associated with stopping and starting an instance. Stopping — As soon as the state of an instance changes to Starting — Each time you start a stopped instance, you are charged for a minimum of one minute of usage. After one minute, you are charged for only the seconds you use. For example, if you run an instance for 20 seconds and then stop it, you are charged for a minute of usage. If you run an instance for 3 minutes and 40 seconds, you are charged for 3 minutes and 40 seconds of usage. Find all running and stopped instancesYou can find all of your running and stopped instances across all AWS Regions on a single page using Amazon EC2 Global View. This capability is especially useful for taking inventory and finding forgotten instances. For information about how to use Global View, see Amazon EC2 Global View. Prerequisites for stopping an instanceYou can stop an Amazon EBS-backed instance. Instances backed by an instance store volume do not support the Stop action. To better understand the differences between the two volume types, see Storage options for your Amazon EC2 instances. To verify the root device type of an instance, you can use the Amazon EC2 console or the AWS CLI. Manually stop and start an instancesYou can stop and start your Amazon EBS-backed instance using the console or the command line. Warning When you stop an instance, the data on any attached instance store volumes is erased. Before you stop an instance, verify that you've copied any data that you need from your instance store volumes to persistent storage, such as Amazon EBS or Amazon S3. Instances backed by an instance store volume do not support the Stop action. Automatically stop and start your instancesYou can automate stopping and starting instances with the following services: What happens when you stop an instanceWhen you stop an instance, changes are registered at the OS level of the instance, some system resources are lost, and some persist. When you stop an instance, the following is registered at the OS level:
When you stop an instance, the following is lost:
When you stop an instance, the following persists:
For information about what happens when you stop a Mac instance, see What happens when you start an instanceWhen you start an instance, changes are registered at the instance level. When you start an EC2 instance, the following occurs:
Modify a stopped instanceWhen an instance is stopped, you can treat its root volume like any other volume, and modify it (for example, repair file system problems or update software). You can modify the following attributes of an instance only when it is stopped:
If you try to modify these attributes while the instance is running, Amazon EC2 returns the`IncorrectInstanceState` error. You can change the following attributes of a stopped instance using the Amazon EC2 console or the AWS CLI:
Modification of the following attributes using the Amazon EC2 console is not supported:
Modify an instance attribute You can modify an instance attribute using the Amazon EC2 console or the command line. Modify the root volume of an instance You can modify the root volume of an instance by performing the following steps.
Make sure that you reattach the root volume using the storage device name specified as the root device in the block device mapping for the instance. For detailed steps on how to detach and attach a volume to an instance, see Detach an Amazon EBS volume from a Linux instance and Attach an Amazon EBS volume to an instance. For more help with specifying block device mappings, see Block device mappings. Enable stop protectionTo prevent an instance from being accidentally stopped, you can enable stop protection for the instance. Stop protection also protects your instance from accidental termination. The Limitations
Enable stop protection for an instance at launchYou can enable stop protection for an instance when launching the instance using one of the following methods. Enable stop protection for a running or stopped instanceYou can enable stop protection for an instance while the instance is running or stopped using one of the following methods. Disable stop protection for a running or stopped instanceYou can disable stop protection for a running or stopped instance using one of the following methods. Test application response to stop and startYou can use AWS Fault Injection Service to test how your application responds when your instance is stopped and started. For more information, see the AWS Fault Injection Service User Guide. Troubleshoot stopping your instanceIf you stopped an Amazon EBS-backed instance and it appears "stuck" in the`stopping` state, you can forcibly stop it. For more information, see Troubleshoot stopping your instance. How do I stop a program from being always on top?Enable or Disable Always On Top for Task Manager using Keyboard Shortcut. 1 Press the Ctrl + Shift + Esc keys to open Task Manager in more details (Alt+D) view. 2 Press the Alt + O keys to open the Options menu, and press the A key to toggle Always on top checked (on) or unchecked (off-default) for what you want. How do I force close a program that won't close?The easiest way to force quit a window on a PC is by using the keyboard shortcut 'Alt + F4.' Click on the window you want to force quit, then hold down 'Alt + F4' together. You can also force quit using Task Manager or Command Prompt. How do I force Task Manager to top?Once you open the Task Manager, go to the bottom right corner of your screen and click on the small upward arrow icon. Look for the Task Manager icon and right-click on it. Select Always on top from the context menu and the Task Manager window will remain on top of all other windows. How do I permanently end a task in Task Manager?Just press the CTRL + Alt + Delete buttons simultaneously. Select Task Manager when the menu opens. Processes can be stopped by simply opening Task Manager, clicking on the Process tab and clicking on a process you want to stop. Then hit the big End Task button in the bottom right corner. |