Launching a Linux instance from a backup - Amazon Elastic Compute Cloud

Launching a Linux instance from a backup

With an Amazon EBS-backed Linux instance, you can back up the root device volume of the instance by creating a snapshot. When you have a snapshot of the root device volume of an instance, you can terminate that instance and then later launch a new instance from the snapshot. This can be useful if you don't have the original AMI that you launched an instance from, but you need to be able to launch an instance using the same image.

Use the following procedure to create an AMI from the root volume of your instance using the console. If you prefer, you can use one of the following commands instead: register-image (AWS CLI) or Register-EC2Image (AWS Tools for Windows PowerShell). You specify the snapshot using the block device mapping.

To create an AMI from your root volume using the console

  1. Open the Amazon EC2 console at

  2. In the navigation pane, choose Elastic Block Store, Snapshots.

  3. Choose Create Snapshot.

  4. For Volumes, start typing the name or ID of the root volume, and then select it from the list of options.

  5. Choose the snapshot that you just created, and then choose Actions, Create Image.

  6. In the Create Image from EBS Snapshot dialog box, provide the following information and then choose Create. If you're re-creating a parent instance, then choose the same options as the parent instance.

    • Architecture: Choose i386 for 32-bit or x86_64 for 64-bit.

    • Root device name: Enter the appropriate name for the root volume. For more information, see Device naming on Linux instances.

    • Virtualization type: Choose whether instances launched from this AMI use paravirtual (PV) or hardware virtual machine (HVM) virtualization. For more information, see Linux AMI virtualization types.

    • (PV virtualization type only) Kernel ID and RAM disk ID: Choose the AKI and ARI from the lists. If you choose the default AKI or don't choose an AKI, you are required to specify an AKI every time you launch an instance using this AMI. In addition, your instance may fail the health checks if the default AKI is incompatible with the instance.

    • (Optional) Block Device Mappings: Add volumes or expand the default size of the root volume for the AMI. For more information about resizing the file system on your instance for a larger volume, see Extending a Linux file system after resizing a volume.

  7. In the navigation pane, choose AMIs.

  8. Choose the AMI that you just created, and then choose Launch. Follow the wizard to launch your instance. For more information about how to configure each step in the wizard, see Launching an instance using the Launch Instance Wizard.