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.

See Amazon S3

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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