ec2-attach-volume From Amazon Elastic Compute Cloud: 2008-05-05 previous page next page ec2-attach-volumeSyntax ec2-attach-volume volume_id --instance instance_id --device device Description Attaches an Amazon EBS volume to an instance and exposes it as the specified device. OptionsOptionDescriptionRequiredvolume_idThe ID of the Amazon EBS volume Example: vol-4d826724 Yes--instance instance_idThe ID of the instance to which the volume will attach Volumes can only attach to instances in the same availability zone. Example: i-6058a509 Yes--device deviceSpecifies how the device is exposed to the instance. This value is operating system dependent. Example: /dev/sdh (Linux) YesOutput Amazon EBS returns a table that contains the following information: ATTACHMENT identifierID of the volumeID of the instanceThe device as it is exposed to the instanceVolume state (e.g., attaching, attached)Time stamp when attachment initiated Amazon EBS displays errors on stderr. ExampleThis example attaches volume vol-4d826724 to instance i-6058a509 and exposes it as /dev/sdh. For information on standard storage locations, see Storage Locations.$ ec2-attach-volume vol-4d826724 --instance i-6058a509 --device /dev/sdh ATTACHMENT vol-4d826724 i-6058a509 /dev/sdh attaching 2008-02-14T00:15:00+0000 Related Topics ec2-create-volume ec2-delete-volume ec2-describe-volumes ec2-detach-volume previous page start next page