Name

ec2-create-volume

Synopsis

ec2-create-volume (-s size | --snapshot snapshotid) -z zone

Creates a new volume either with the specified volume size or based on the specified snapshot in the named availability zone. You must specify an availability zone and either a size or a snapshot. The size parameter is the size in gigabytes.

Examples

# Create a new volume of 10 GB
$ ec2-create-volume -s 10 -z eu-west-1a
VOLUME  vol-12345678  10  eu-west-1a  creating  2008-12-20T20:47:23+0000

# Create a volume based on a stored snapshot
$ ec2-create-volume --snapshot snap-a5d8ef77 -z eu-west-1a
VOLUME  vol-12345678  10  eu-west-1a  creating  2008-12-20T20:47:23+0000

Get Cloud Application Architectures now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.