Create an EBS volume from an imported snapshot - VM Import/Export
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Create an EBS volume from an imported snapshot

You can create one or more EBS volumes from an EBS snapshot. You can attach each EBS volume to a single EC2 instance.

The following procedure shows how to create a volume and attach it to an instance using the Amazon CLI. Alternatively, you could use the Amazon Web Services Management Console.

To create a volume and attach it to an EC2 instance
  1. Use the describe-import-snapshot-tasks command to determine the ID of the snapshot that was created by the import task.

  2. Use the following create-volume command to create a volume from the snapshot. You must select the Availability Zone of the instance to which you'll attach the volume.

    aws ec2 create-volume --availability-zone us-east-1a --snapshot-id snap-1234567890abcdef0

    The following is example output:

    { "AvailabilityZone": "us-east-1a", "VolumeId": "vol-1234567890abcdef0", "State": "creating", "SnapshotId": "snap-1234567890abcdef0" }
  3. Use the following attach-volume command to attach the EBS volume that you created in the previous step to one of your existing instances.

    aws ec2 attach-volume --volume-id vol-1234567890abcdef0 --instance-id i-1234567890abcdef0 --device /dev/sdf

    The following is example output:

    { "AttachTime": "YYYY-MM-DDTHH:MM:SS.000Z", "InstanceId": "i-1234567890abcdef0", "VolumeId": "vol-1234567890abcdef0", "State": "attaching", "Device": "/dev/sdf" }
  4. Mount the attached volume. For more information, see the documentation for the operating system for your instance.