- Install s3fs
sudo apt update
sudo apt install s3fs
- Store your credentials on
/etc/passwd-s3fs
file
echo "ACCESS_KEY:SECRET_KEY" | sudo tee /etc/passwd-s3fs
- Set permissions
sudo chmod 600 /etc/passwd-s3fs
- Create an empty directory as a mount point for your s3 bucket
sudo mkdir /mnt/<<dir-name>>
- Make sure user_allow_other is uncommented in
/etc/fuse.conf
6a) Manually mount the bucket from your minio object storage
s3fs <<bucket-name>> /mnt/<<dir-name>> -o passwd_file=/etc/passwd-s3fs,use_path_request_style,allow_other,umask=000,url=http://<<s3.exampleminio.com>>
You can check it by
mout | grep s3fs
If everything OK you should see:
s3fs on /mnt/<<dir-name>> type fuse.s3fs (rw,relatime,user_id=0,group_id=0,allow_other)
6b) Edit fstab
sudo nano /etc/fstab
Add this line WITH YOUR DATA
s3fs#<<bucket>> /mnt/<<dir-name>> fuse _netdev,allow_other,umask=000,use_path_request_style,passwd_file=/etc/passwd-s3fs,url=http://<<s3.exampleminio.com>> 0 0
- Reboot or
init 6
Thats it