ec2-describe-volumes
Description
Describes the specified Amazon EBS volumes that you own. If you do not specify one or more volume IDs, Amazon EBS describes all volumes that you own. For more information about Amazon EBS, go to the
Syntax
ec2-describe-volumes [
volume_id
...]
Options
Name | Description | Required |
---|---|---|
|
The ID of the volume to list. Type: String Default: Describes all volumes that you own. Example: vol-4282672b |
No |
Output
The command returns a table that contains the following information:
-
VOLUME identifier
-
ID of the volume
-
Size of the volume, in GiBs
-
Snapshot from which the volume was created, if applicable
-
Availability Zone in which the volume launched
-
Volume state (e.g., creating, available, in-use, deleting, error)
-
Time stamp when volume creation initiated
Amazon EC2 displays errors on stderr.
Examples
Example Request
This example describes all volumes associated with your account.
PROMPT>ec2-describe-volumes
VOLUME vol-4d826724 800 us-east-1a in-use 2008-02-14T00:00:00+0000
ATTACHMENT vol-4d826724 i-6058a509 /dev/sdh attached 2008-02-14T00:00:17+0000
VOLUME vol-50957039 13 us-east-1a available 2008-02-091T00:00:00+0000
VOLUME vol-6682670f 1 us-east-1a in-use 2008-02-11T12:00:00+0000
ATTACHMENT vol-6682670f i-69a54000 /dev/sdh attached 2008-02-11T13:56:00+0000