Attaching an Amazon EBS Volume to an Instance
You can attach an EBS volumes to one of your instances that is in the same Availability Zone as the volume.
Determine the device names that you'll use. For more information, see Device Naming on Linux Instances.
Determine how many volumes you can attach to your instance. For more information, see Instance Volume Limits.
If a volume is encrypted, it can only be attached to an instance that supports Amazon EBS encryption. For more information, see Supported Instance Types.
If a volume has an AWS Marketplace product code:
The volume can only be attached to a stopped instance.
You must be subscribed to the AWS Marketplace code that is on the volume.
The configuration (instance type, operating system) of the instance must support that specific AWS Marketplace code. For example, you cannot take a volume from a Windows instance and attach it to a Linux instance.
AWS Marketplace product codes are copied from the volume to the instance.
To attach an EBS volume to an instance using the console
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
In the navigation pane, choose Volumes.
Select a volume and choose Attach Volume.
In the Attach Volume dialog box, start typing the name or ID of the instance to attach the volume to for Instance, and select it from the list of suggestion options (only instances that are in the same Availability Zone as the volume are displayed).
You can keep the suggested device name, or enter a different supported device name.
The block device driver for the instance assigns the actual volume name when mounting the volume, and the name assigned can be different from the name that Amazon EC2 recommends.
Connect to your instance and make the volume available. For more information, see Making an Amazon EBS Volume Available for Use.