1. Install neccessary packages
$ sudo apt-get update $ sudo apt-get install build-essential libfuse-dev fuse-utils libcurl4-openssl-dev libxml2-dev mime-support2. Next step is to download archive with latest version of s3fs
$ wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz $ tar xzvf s3fs-1.61.tar.gz3. Compile sources
$ cd s3fs-1.61/ $ sudo ./configure $ sudo make $ sudo make install4. Allow other users have access to s3 bucket that will be mounted
Edit file /etc/fuse.conf with any text editor, I used vim for this:
$ sudo vim /etc/fuse.confAnd uncomment the following line in the conf file:
...
#user_allow_other
5. Add pare of you Amazon account key id and account access key to /etc/passwd-s3fs file
Edit file /etc/passwd-s3fs and add here string: AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY
Where: AWS_ACCESS_KEY_ID -- your amazon account key id
AWS_SECRET_ACCESS_KEY -- your amazon account access key
6. Set permissions to file
$ sudo chmod 0600 /etc/passwd-s3fs7. Mount s3 bucket to local filesystem
$ sudo s3fs your_backet_name -o use_cache=/tmp -o allow_other /mnt/s3storageThat's all and now S3 bucket can be used as local filesystem.