Mount Amazon s3 on Linux

To mount Amazon S3 bucket as a filesystem on linux, you can use s3fs.

https://github.com/s3fs-fuse/s3fs-fuse

To install s3fs on Ubuntu/Debian, run

apt install s3fs

To mount an s3 buclet, create a password file with your AWS secret key and

echo ACCESS_KEY_ID:SECRET_ACCESS_KEY > ${HOME}/.passwd-s3fs
chmod 600 ${HOME}/.passwd-s3fs

Then run

s3fs sokmount /home/boby/ -o passwd_file=${HOME}/.passwd-s3fs -o dbglevel=info -f -o curldbg -o endpoint=ap-southeast-1 -o url=”https://s3-ap-southeast-1.amazonaws.com”

In above command replace

sokmount = bucket name
/home/boby/ = your mount point
ap-southeast-1 = AWS region where bucket is created.

Leave a Comment

Your email address will not be published. Required fields are marked *

Hire a server Expert to resolve the issue Now.

Hire a server Expert to resolve the issue Now.

Resolve this issue in just 5$ from https://serverexpert.io

 

You have Successfully Subscribed!

Open chat