Instance retirement - Amazon Elastic Compute Cloud

Instance retirement

An instance is scheduled to be retired when AWS detects irreparable failure of the underlying hardware that hosts the instance. When an instance reaches its scheduled retirement date, it is stopped by AWS. If your instance root device is an Amazon EBS volume, the instance is stopped, and you can start it again at any time. Starting the stopped instance migrates it to new hardware.

For more information about the types of instance events, see Scheduled events for your instances.

Identify instances scheduled for retirement

If your instance is scheduled for retirement, you receive an email prior to the event with the instance ID and retirement date. You can also check for instances that are scheduled for retirement using the Amazon EC2 console or the command line.

Important

If an instance is scheduled for retirement, we recommend that you take action as soon as possible because the instance might be unreachable. (The email notification you receive states the following: "Due to this degradation your instance could already be unreachable.") For more information about the recommended action you should take, see Check if your instance is reachable.

Ways to identify instances scheduled for retirement

Email notification

If your instance is scheduled for retirement, you receive an email prior to the event with the instance ID and retirement date.

The email is sent to the primary account holder and the operations contact. For more information, see Adding, changing, or removing alternate contacts in the AWS Billing and Cost Management User Guide.

Console identification

If you use an email account that you do not check regularly for instance retirement notifications, you can use the Amazon EC2 console or the command line to determine if any of your instances are scheduled for retirement.

To identify instances scheduled for retirement using the console

  1. Open the Amazon EC2 console.

  2. In the navigation pane, choose EC2 Dashboard. Under Scheduled events, you can see the events that are associated with your Amazon EC2 instances and volumes, organized by Region.

    
                            Scheduled events
  3. If you have an instance with a scheduled event listed, select its link below the Region name to go to the Events page.

  4. The Events page lists all resources that have events associated with them. To view instances that are scheduled for retirement, select Instance resources from the first filter list, and then Instance stop or retirement from the second filter list.

  5. If the filter results show that an instance is scheduled for retirement, select it, and note the date and time in the Start time field in the details pane. This is your instance retirement date.

To identify instances scheduled for retirement using the command line

You can use one of the following commands. For more information about these command line interfaces, see Access Amazon EC2.

Actions to take for instances scheduled for retirement

To preserve the data on your retiring instance, you can perform one of the following actions. It's important that you take this action before the instance retirement date to prevent unforeseen downtime and data loss.

Check if your instance is reachable

When you are notified that your instance is scheduled for retirement, we recommend that you take the following action as soon as possible:

  • Check if your instance is reachable by either connecting to or pinging your instance.

  • If your instance is reachable, you should plan to stop/start your instance at an appropriate time before the scheduled retirement date, when the impact is minimal. For more information about stopping and starting your instance, and what to expect when your instance is stopped, such as the effect on public, private, and Elastic IP addresses that are associated with your instance, see Stop and start your instance. Note that data on instance store volumes is lost when you stop and start your instance.

  • If your instance is unreachable, you should take immediate action and perform a stop/start to recover your instance.

  • Alternatively, if you want to terminate your instance, plan to do so as soon as possible so that you stop incurring charges for the instance.

Create a backup of your instance

Create an EBS-backed AMI from your instance so that you have a backup. To ensure data integrity, stop the instance before you create the AMI. You can wait for the scheduled retirement date when the instance is stopped, or stop the instance yourself before the retirement date. You can start the instance again at any time. For more information, see Create a custom Windows AMI.

Launch a replacement instance

After you create an AMI from your instance, you can use the AMI to launch a replacement instance. From the Amazon EC2 console, select your new AMI and then choose Actions, Launch. Follow the wizard to launch your instance. For more information about each step in the wizard, see Launch an instance using the Launch Instance Wizard.