Attaches an EBS volume to an instance. Not all volumes can be attached using this command; /dev/sda and /dev/sdb are restricted.


euca-attach-volume  -i instance_id -d device volume_id


Option Description Required
-i,--instance Unique ID of a running instance to attach the volume to. Yes
-d,--device Local device name (inside the guest VM) to use. Depending on your hypervisor, this might be ignored. Yes
volume_id Unique id for the volume to be attached. Yes

Common Options

Option Description
--show-empty-fields Show empty fields as "(nil)".
--region user@region Region and/or user name to search when looking up config file data. Only valid for EC2 endpoints.
-U,--url url URL of the cloud service to connect to. For administrative commands, this should be <ip_address>:8773/services/Empyrean.
-I,--access-key-id key_id User's access key ID.
-S,--secret-key secret_key User's secret key.
--security-token token User's security token.
--debug Prints what the command sends to the server and what it receives from the server. Use when you're trying to debug Euca2ools.
--debugger Enable interactive debugger on error.
-h,--help Display the manual page for the command.
--version Display the version of this tool.



euca-attach-volume -i i-3C66428A -d /dev/sdf vol-639C3E6C
VOLUME  vol-639C3E6C