Mounting a s3 bucket as network drive on ec2 machine

前端 未结 2 1969
迷失自我
迷失自我 2021-01-25 01:27

Is it possible to mount a S3 bucket to a windows instance as a network drive on my EC2 system. Any ideas anyone.

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-25 02:13

    1) Install WinFsp http://www.secfs.net/winfsp/download/

    2) Download rclone https://rclone.org/

    3) Extract it for example here C:\Program Files\rclone

    4) Once in the path, execute "rclone config" and follow the steps. Otherwise create this file C:\Users\David\.config\rclone\rclone.conf and fill it with you params. In my case:

    [minio]
    type = s3
    provider = Minio
    env_auth = false
    access_key_id = ...
    secret_access_key = ...
    endpoint = http://192.168.1.10:9000
    acl = public-read-write
    

    5) Execute rclone (where Z will be the letter assigned to the mounted bucket, and 'bucketname' is your bucket's name):

    .\rclone.exe mount minio:bucketname Z: --allow-other --allow-root --dir-cache-time 0 --poll-interval 0 --vfs-cache-mode writes --write-back-cache --no-check-certificate --log-level INFO --progress
    

    It works like a charm!

提交回复
热议问题