Mount the S3 bucket on the Windows
ในกรณีที่ต้องการ mount S3 บน Windows OS สามารถดำเนินการได้ตามขั้นตอนด้านล่าง
Prerequisite
Create an Object Storage Sub-User (https://docs-epc.gitbook.io/ncs-documents/storage/object-storage-s3/create-an-object-storage-sub-user )
Instructions
1. Install Rclone
Download the Rclone from the official website (https://downloads.rclone.org/rclone-current-windows-amd64.zip).
Extract the downloaded zip file. (Ex. C:\Program Files\rclone\)
open Command Prompt (CMD) and change the directory to ( C:\Program Files\rclone\rclone-v1.69.2-windows-amd64 ) then type command rclone

2. Configure Rclone with S3
Now that we have installed rclone, we will continue with the configuration by typing config command rclone config
select n for a new remote configuration.

give a name to the connection (e.g. S3)

select 4 for “Amazon S3 Compliant Storage Provider

select 1 for the S3 provider.

select 2 to use AWS credentials from the Instance Profile we defined earlier.

Use the access_key_id and secret_access_key of your Sub-User

select 12 (ap-southeast-1) AWS region in which the S3 bucket has been created.

Specify a name for the connection: s3-bkk.nipa.cloud

Leave the remaining fields blank, then press Enter to continue.



finally, skip the advanced configuration by typing n. We get a summary of the configuration. If everything is fine we can type y. Otherwise n to restart the configuration process.

3. Mount the S3 Bucket as a Windows Drive
In order to make rclone work we need winfsp, an open source Windows File System Proxy which makes it easy to write user space filesystems for Windows. It provides a FUSE emulation layer which rclone uses in combination with cgofuse.
To get rid of this error, we need to download and install winfsp-1.7.20172.msi.
Mount the S3 Bucket as a Windows Drive by command:
rclone mount <configuration_name>:<bucket_name> X: --vfs-cache-mode full ---links
ตัวอย่าง

4. Verify Mount
Open File Explorer, We can now see a new disk mounted on the instance.
Let’s drop a file at the root of the disk to see if everything is working.

Referrence https://blog.spikeseed.cloud/mount-s3-as-a-disk/
Last updated
Was this helpful?