aws ec2 attach-volume
Attaches an Amazon EBS volume to a running or stopped instance, and exposes it to the instance with the specified device name. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--deviceThe device name (for example, /dev/sdh or xvdh).--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--ebs-card-indexThe index of the EBS card.--instance-idThe ID of the instance.--volume-idThe ID of the EBS volume.