S3FS is FUSE (File System in User Space) based solution to mount an Amazon S3 buckets, We can use system commands with this drive just like as another Hard Disk in the system. On s3fs mounted files systems we can simply use cp, mv and ls the basic Unix commands similar to run on locally attached disks.
yum update -y
yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel -y
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse
./autogen.sh
./configure — prefix=/usr — with-openssl
make
sudo make install
# which s3fs
/usr/bin/s3fs
echo AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY > ~/.passwd-s3fs
chmod 755 ~/.passwd-s3fs
mkdir /tmp/cache /s3mnt
s3fs -o use_cache=/tmp/cache <s3bucketname> /s3mnt
<bucketname> /s3mnt fuse.s3fs _netdev,allow_other 0 0
# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 475M 0 475M 0% /dev
tmpfs 483M 0 483M 0% /dev/shm
tmpfs 483M 444K 483M 1% /run
tmpfs 483M 0 483M 0% /sys/fs/cgroup
/dev/xvda1 8.0G 1.8G 6.3G 23% /
s3fs 16E 0 16E 0% /s3mnt >>>>>>>>>>>>>>>>>> This is s3-bucket which we have mouunted
[root@ip-172-31-42-176 s3mnt]# ll
total 1
-rw-r--r-- 1 root root 98 Mar 7 22:30 testfile
-rw-r--r-- 1 root root 410 Mar 7 22:30 testnote
[root@ip-172-31-42-176 s3mnt]# pwd
/s3mnt
Succesfully mounted the s3-bucket on amazon linux. Try it yourself