How to Create an Amazon EBS Volume
To use Amazon EBS, you first create a volume that can be attached to any Amazon EC2 instance within the same Availability Zone. This example creates an 800 GiB Amazon EBS volume.
Procedure
To create an Amazon EBS volume
-
If you are using SOAP, construct the following request:
<CreateVolume xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <size>
size
</size> <availabilityZone>zone
</availabilityZone> </CreateVolume> -
If you are using Query, construct the following request:
https://ec2.amazonaws.com/ ?Action=CreateVolume &Size=
size
&AvailabilityZone=zone
&...auth parameters... -
View output similar to the following:
<CreateVolumeResponse xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <volumeId>vol-4d826724</volumeId> <size>800</size> <status>creating</status> <createTime>2008-05-07T11:51:50.000Z</createTime> <availabilityZone>us-east-1a</availabilityZone> <snapshotId></snapshotId> </CreateVolumeResponse>