Most of the posts highlight what I am focused on and express work and personal experience. Reason I put them here - recall later or help someone else with similar challenge.
This is really nice to have as it can extend Linux file system with unlimited capacity for assets / logs / recorded call etc. The key is S3FS!
Ok, let's get started.
The following dependencies you will need:
apt-get install build-essential git libfuse-dev libcurl4-openssl-dev libxml2-dev mime-support automake libtool pkg-config libssl-dev
Clone S3FS to your Linux FS:
git clone https://github.com/s3fs-fuse/s3fs-fuse
Change your directory and build the software:
cd s3fs-fuse/ ./autogen.sh && ./configure --prefix=/usr --with-openssl && make && make install
Once done, create access data to your bucket:
And now put your access and secret keys pair to this file in the following format:
AWS Access Key ID:AWS Secret Access Key
Now last thing is to mount:
mkdir /tmp/cache chmod 777 /tmp/cache mkdir /mnt/yourbucketname s3fs -o use_cache=/tmp/cache yourbucketname /mnt/yourbucketname
Now you should be able to see uploaded files in your AWS Explorer or vice versa! Enjoy!