You can create a volume from a snapshot. This new volume contains the same data as the original volume at the time the snapshot was created. This enables you to make a copy of a volume within the same Region or within another one, or to extend the storage capacity of a previously created volume.

The following procedures are available:

Creating a Volume from a Snapshot Using Cockpit

  1. Click Storage > Snapshots.

    You can also click Volumes, then Create .

  2. Click the snapshot you want to create a volume from.
    The snapshot is selected.

  3. Click Create Volume .
    The CREATE VOLUME FROM dialog box appears.
     
  4. In the Name field, type a name for the volume. 


    This action adds a Name tag of 255 characters maximum. You can use any character, including accented letters.

  5. In the Size field, type a size in gibibytes (GiB) for the volume, or select it using the arrows. 


    The size of the volume must be at least equal to the size of the selected snapshot.


  6. In the Type list, select a volume type (standard | io1 | gp2). For more information about the different types of volumes, see Volume Types and IOPS.

  7. In the Availability Zone list, select the Availability Zone in which you want to create the volume.

    By default, the Availability Zone A is selected.


     
  8. In the Count field, type the number of volumes you want to create or select it using the arrows.
     
  9. Click Create.
    A volume is created from the selected snapshot and now appears on the Volumes page.


    To identify your resources more easily, you can add tags to them. For more information, see Tagging Your Resources.

    You can immediately use this volume and access the data stored on it, as data are loaded as soon as they are requested.



Corresponding API Method

Creating a Volume from a Snapshot Using AWS CLI

  • To create a volume from a snapshot, use the create-volume command following this syntax:

    Request sample
    $ aws ec2 create-volume \
        --profile YOUR_PROFILE \
        --snapshot-id snap-87654321 \
        --size 50 \
        --volume-type io1 \
        --iops 500 \
        --availability-zone eu-west-2a \
        --endpoint https://fcu.eu-west-2.outscale.com

    This command contains the following attributes that you need to specify:

    • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.
    • snapshot-id: The ID of the snapshot from which you want to create the volume.
    • (optional) size: The size of the volume you want to create in gibibytes (GiB). 


      The size of the volume must be at least equal to the size of the selected snapshot.

      If not specified, the volume is created with a size equal to the snapshot one.

    • (optional) volume-type: The type of volume you want to create (standard | io1 | gp2). For more information about volume types, see Volume Types and IOPS.

      If not specified, a standard (Magnetic) volume is created.

    • iops: The number of IOPS.

      This parameter is needed only when you create an io1 (Enterprise) volume.

    • availability-zone: The Availability Zone in which you want to create the volume. 
    • endpoint: The endpoint corresponding to the Region you want to send the request to.


  • The create-volume command returns the following elements: 

    • AvailabilityZoneThe Availability Zone of the volume.
    • Tags: One or more tags associated with the volume. This element contains the following information: 
      • KeyThe key of the tag.
      • ValueThe value of the tag.
    • VolumeTypeThe type of the volume. For more information, see About Volumes > VolumeTypes.
    • VolumeIdThe ID of the newly created volume.
    • StateThe state of the volume (attaching  |  detaching  |  attached  |  detached).
    • IopsThe number of IOPS for the volume. 
    • SnapshotIdThe ID of the snapshot from which the volume was created.
    • CreateTime: The time at which the creation of the volume was initiated.
    • SizeThe size of the volume, in gibibytes (GiB).
    Result sample
    {
    "AvailabilityZone": "eu-west-2a",
    "Tags": [],
    "VolumeType": "io1",
    "VolumeId": "vol-12345678",
    "State": "creating",
    "Iops": 500,
    "SnapshotId": "snap-87654321",
    "CreateTime": "2016-02-05T13:39:00.620Z",
    "Size": 50
    }

    A volume is created from the specified snapshot.

     



AWS™ et Amazon Web Services™ sont des marques de commerce d'Amazon Technologies, Inc. ou de ses affiliées aux États-Unis et/ou dans les autres pays.