How do I attach a new EBS volume to a running Amazon EC2 Windows instance?
Last updated: 2020-12-18
I want to attach a new Amazon Elastic Block Store (Amazon EBS) volume to an Amazon Elastic Compute Cloud (Amazon EC2) Windows instance. How do I attach the new volume and then make the volume available to Windows?
To attach an Amazon EBS volume to a running instance, and then make the volume available to Windows, follow these steps:
- Attach the Amazon EBS volume to the Amazon EC2 Windows instance. You can use the Amazon EC2 console, the AWS Command Line Interface (AWS CLI), or AWS Tools for Windows PowerShell.
Note: If you receive errors when running AWS CLI commands, make sure that you’re using the most recent version of the AWS CLI.
- Connect to the Amazon EC2 Windows instance using Remote Desktop Protocol (RDP).
- To access the volume, make the Amazon EBS volume available for use on Windows.
Note: When you attach a volume to an instance, a device mapping is automatically chosen for you. For more information about device names, see Device naming on Windows instances.