1 Answer
- Newest
- Most votes
- Most comments
1
To access an EC2 instance's storage (EBS volumes) from your local laptop, you have several options:
For Windows EC2 instances:
- Create a shared folder on your Windows EC2 instance:
- Connect to your EC2 instance using RDP
- Create a folder you want to share
- Right-click the folder, select "Properties," go to "Sharing" tab, and click "Share"
- Configure sharing permissions as needed
- Ensure your EC2 security group allows inbound traffic on port 445 (SMB)
- Map the shared folder as a network drive on your local PC:
- Open File Explorer on your local PC
- Right-click on "Network" and choose "Map Network Drive"
- Select a drive letter
- Enter the path to the shared folder using format: \EC2-instance-DNS-name\ShareName
- Check "Reconnect at sign-in" if desired
- Click "Finish"
For any EC2 instance (Windows or Linux):
- If you need to access data from a stopped instance or detached volume:
- Start another EC2 instance
- Attach the volume to the running instance through the AWS Console
- Mount the volume inside the instance
- Copy the files to an S3 bucket
- Download the files from S3 to your local machine
Remember that direct mounting of an EBS volume to your local laptop is not possible - you need to use one of these intermediate methods to access the data.
Sources
How can I create a shared folder on an AWS EC2 instance and access it as a local drive from my local PC? i have window base EC2 Instance | AWS re:Post
Obtaining files/data from Stopped EC2 Instance or the attached volumes (Elastic Block Store) | AWS re:Post
Attach an Amazon EBS volume to an Amazon EC2 instance - Amazon EBS
answered a year ago
Relevant content
asked a year ago
asked 2 years ago
