euca-create-volume

Creates a volume in a specified availability zone.

Syntax

euca-create-volume  -z, --availability-zone zone [-s size ][--snapshot snapshot][-t, --type volume-type][-i, --iops IOPS]

Options

Option Description Required
-z,--availability-zone Availability zone to create the volume in Yes
-s, --size size Size of the volume, in GiBs. You must specificy either -s or --snapshot. Conditional
--snapshot snapshot Snapshot from which to create the new volume. You must specificy either -s or --snapshot. Conditional
-t, --type volume-type The type of the volume. Valid values: standard | io1. Default is standard. No
-i, --iops IOPS The number of I/O operations per second. No

Common Options

Option Description
--show-empty-fields Show empty fields as "(nil)".
--region user@region Region and/or user name to search when looking up config file data. Only valid for EC2 endpoints.
-U,--url url URL of the cloud service to connect to. For administrative commands, this should be <ip_address>:8773/services/Empyrean.
-I,--access-key-id key_id User's access key ID.
-S,--secret-key secret_key User's secret key.
--security-token token User's security token.
--debug Prints what the command sends to the server and what it receives from the server. Use when you're trying to debug Euca2ools.
--debugger Enable interactive debugger on error.
-h,--help Display the manual page for the command.
--version Display the version of this tool.

Output

Examples

euca-create-volume -z zone00 -s 5
VOLUME  vol-84B54112    5   zone00  creating    2012-01-01T00:00:00.000Z

The following example shows a volume created from a snapshot.

euca-create-volume -z zone00 --snapshot snap-5E313F37
VOLUME  vol-45C63B9B    snap-5E313F37   zone00  creating
2012-01-01T00:00:00.000Z
x