I am trying to map an Amazon EC2 drive to a local machine

点点圈 提交于 2021-02-08 08:23:58

问题


I am trying to map an Amazon EC2 instance to my local machine. I have read that it is possible via VPN but I need it to work without a VPN. Essentially I would like to make drives in the EC2 instance available similar to the way DropBox folders are available. I know that I could just use Dropbox but I am trying to find a way to do this using just a local machine running Windows 7 and an EC2 server using Windows Server 2008. If it is easier, I can use Windows Server 2012.


回答1:


Your request is to make a volume from an Amazon EC2 instance (eg the D: drive) available on your local (non-EC2) computer. This is, in fact, no different to sharing drives between normal computers -- you can 'share' a drive and then connect to it.

However, I would recommend against doing this across the Internet because your drive would effectively be accessible to the entire Internet. You can secure it with a Username/Password, you could even restrict access to a range of IP addresses, but it's probably not the best way to do things. It would also be relatively slow -- computers normally expect "local" network drives rather than far-distant ones.

I'd like to suggest a couple of alternatives:

Store files on Amazon S3

You could use Amazon S3 as the "middle" service between your machines. Use tools such as Cloudberry Drive or ExpanDrive to 'mount' Amazon S3 as a drive. You can then save to S3 as if it were a local disk, and the files would instantly 'appear' to the other computer. (DropBox actually uses Amazon S3 to store data.)

Use the AWS CLI

The AWS Command-Line Interface (CLI) has a aws s3 cp command that lets you easily copy files to/from Amazon S3. You can even sync between a local directory and S3. It's an easy way to move data.

Bottom line: Have a think about why you want to share drives, and there might be an easier way to share data and actually sharing drives.



来源:https://stackoverflow.com/questions/32487014/i-am-trying-to-map-an-amazon-ec2-drive-to-a-local-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!