Attach Volume

GET {{aws_ec2_base_url}}/?Device&DryRun&InstanceId&VolumeId&Action=AttachVolume

Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.

Request Params

KeyDatatypeRequiredDescription
DevicenullThe device name (for example, /dev/sdh or xvdh).
DryRunnullChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
InstanceIdnullThe ID of the instance.
VolumeIdnullThe ID of the EBS volume. The volume and instance must be within the same Availability Zone.
Actionstring