Mounting S3 in Ubuntu
19 Apr 2018Getting the s3 storage mechanism can be easily integrated into your local linux file system using the s3fs project.
Install the s3fs package as usual:
sudo apt-get install s3fsConfigure authentication using a home-folder credential file called .passwd-s3fs. This file expects data in the format of IDENTITY:CREDENTIAL. You can easily create one of these with the following:
echo MYIDENTITY:MYCREDENTIAL > ~/.passwd-s3fs
chmod 600 ~/.passwd-s3fsFinally, mount your S3 bucket into the local file system:
s3fs your-bucket-name /your/local/folder -o passwd_file=/home/michael/.passwd-s3fsThat’t it. You can now use S3 data, just as you would local data on your system.