list-ec2-volumes

Posted 2014-03-18 01:36 by Joe

list-ec2-volumes.pl

list-ec2-volumes.pl

Lists all EC2 EBS volumes for all accounts

This command lists all EC2 block volumes associated with your EC2 accounts, including their sizes and the systems they are attached to, if any. By default it includes those from all accounts, but you can limit the display to just one with the optional --account flag (followed by an account number).

To switch to a more parsable and detailed output format, add the --multiline flag to the command line. To just get a list of volume IDs, use the --name-only flag.

Example usage

  cloudmin list-ec2-volumes
  Volume ID       Host                                  Size       Account
  --------------- ------------------------------------- ---------- ------------
  vol-0334d16a    ec2-67-202-53-173.compute-1.amazon.co 2 GB       12345678

Command Line Help

Lists all EC2 EBS volumes.

cloudmin list-ec2-volumes [--multiline | --name-only]
                          [--account number]