NOTE:https://howto.lintel.in/how-to-mount-aws-s3-bucket-on-linux/
After creation Ec2 instance
yum -y install automake fuse fuse-devel gcc-c++ libcurl-devel libxml2-devel make openssl-dev
el
sudo yum install git
Complete!
[root@ip-172-31-41-86 ~]# git clone https://github.com/s3fs-fuse/s3fs-fuse.git
Cloning into 's3fs-fuse'...
remote: Enumerating objects: 37, done.
remote: Counting objects: 100% (37/37), done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 5876 (delta 16), reused 17 (delta 6), pack-reused 5839
Receiving objects: 100% (5876/5876), 3.53 MiB | 2.86 MiB/s, done.
Resolving deltas: 100% (4067/4067), done.
[root@ip-172-31-41-86 ~]# ^C
[root@ip-172-31-41-86 ~]# ls
s3fs-fuse
[root@ip-172-31-41-86 ~]# cd s*
[root@ip-172-31-41-86 s3fs-fuse]# ls
AUTHORS autogen.sh ChangeLog COMPILATION.md configure.ac COPYING doc INSTALL Makefile.am README.md src test
[root@ip-172-31-41-86 s3fs-fuse]# ./autogen.sh
--- Make commit hash file -------
--- Finished commit hash file ---
--- Start autotools -------------
configure.ac:26: installing './config.guess'
configure.ac:26: installing './config.sub'
configure.ac:27: installing './install-sh'
configure.ac:27: installing './missing'
src/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
--- Finished autotools ----------
[root@ip-172-31-41-86 s3fs-fuse]# ./configure
checking for sys/xattr.h... yes
checking attr/xattr.h usability... no
checking attr/xattr.h presence... no
checking for attr/xattr.h... no
checking sys/extattr.h usability... no
checking sys/extattr.h presence... no
checking for sys/extattr.h... no
checking s3fs build with nettle(GnuTLS)... no
checking s3fs build with OpenSSL... no
checking s3fs build with GnuTLS... no
checking s3fs build with NSS... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for common_lib_checking... yes
checking compile s3fs with... OpenSSL
checking for DEPS... no
configure: error: Package requirements (fuse >= 2.8.4 libcurl >= 7.0 libxml-2.0 >= 2.6 libcrypto >= 0.9 ) were not met:
No package 'libcrypto' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables DEPS_CFLAGS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
[root@ip-172-31-41-86 s3fs-fuse]# make**FAILED**
mkdir -p /var/s3fs-demo-fs
[root@ip-172-31-41-86 s3fs-fuse]#
[root@ip-172-31-41-86 s3fs-fuse]# aws s3 mb s3://s3fs-demobk
make_bucket: s3fs-demobk
[root@ip-172-31-41-86 s3fs-fuse]# s3fs s3fs-demobk /var/s3fs-demo-fs -o iam_role-ec2t
os3
-bash: s3fs: command not found
[root@ip-172-31-41-86 s3fs-fuse]# bash
[root@ip-172-31-41-86 s3fs-fuse]# s3fs
bash: s3fs: command not found
###FIX S3FS NOT FOUND###
yum install gcc libstdc++-devel gcc-c++ curl-devel libxml2-devel openssl-devel mailcap fuse fuse-devel
wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz
tar xvzf s3fs-1.61.tar.gz
cd s3fs-1.61/
./configure --prefix=/usr
make
make install
vim /etc/passwd-s3fs
chmod 640 /etc/passwd-s3fs
s3fs yourBucketNameHere /mnt
s3fs s3fs-demobk /var/s3fs-demo-fs -o iam_role_ec2tos3
to fix passwd-s3fs issue need to enter the accessid and key id
Access Key ID:AKIAJVTBI7PNBULL4XSA
Secret Access Key:OFKq1LcUkuBQ0BYF9oenCkZ/+EoQ8SrScwlD6Y2i
AKIAJVTBI7PNBULL4XSA:OFKq1LcUkuBQ0BYF9oenCkZ/+EoQ8SrScwlD6Y2i
s3fs s3fs-demobk /var/s3fs-demo-fs -o asswd_file=/etc/passwd-s3fs
syntax --->s3fs mybucketname /path/to/mountpoint -o passwd_file=/etc/passwd-s3fs
yum -y install automake fuse fuse-devel gcc-c++ libcurl-devel libxml2-devel make openssl-dev
el
sudo yum install git
Complete!
[root@ip-172-31-41-86 ~]# git clone https://github.com/s3fs-fuse/s3fs-fuse.git
Cloning into 's3fs-fuse'...
remote: Enumerating objects: 37, done.
remote: Counting objects: 100% (37/37), done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 5876 (delta 16), reused 17 (delta 6), pack-reused 5839
Receiving objects: 100% (5876/5876), 3.53 MiB | 2.86 MiB/s, done.
Resolving deltas: 100% (4067/4067), done.
[root@ip-172-31-41-86 ~]# ^C
[root@ip-172-31-41-86 ~]# ls
s3fs-fuse
[root@ip-172-31-41-86 ~]# cd s*
[root@ip-172-31-41-86 s3fs-fuse]# ls
AUTHORS autogen.sh ChangeLog COMPILATION.md configure.ac COPYING doc INSTALL Makefile.am README.md src test
[root@ip-172-31-41-86 s3fs-fuse]# ./autogen.sh
--- Make commit hash file -------
--- Finished commit hash file ---
--- Start autotools -------------
configure.ac:26: installing './config.guess'
configure.ac:26: installing './config.sub'
configure.ac:27: installing './install-sh'
configure.ac:27: installing './missing'
src/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
--- Finished autotools ----------
[root@ip-172-31-41-86 s3fs-fuse]# ./configure
checking for sys/xattr.h... yes
checking attr/xattr.h usability... no
checking attr/xattr.h presence... no
checking for attr/xattr.h... no
checking sys/extattr.h usability... no
checking sys/extattr.h presence... no
checking for sys/extattr.h... no
checking s3fs build with nettle(GnuTLS)... no
checking s3fs build with OpenSSL... no
checking s3fs build with GnuTLS... no
checking s3fs build with NSS... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for common_lib_checking... yes
checking compile s3fs with... OpenSSL
checking for DEPS... no
configure: error: Package requirements (fuse >= 2.8.4 libcurl >= 7.0 libxml-2.0 >= 2.6 libcrypto >= 0.9 ) were not met:
No package 'libcrypto' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables DEPS_CFLAGS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
[root@ip-172-31-41-86 s3fs-fuse]# make**FAILED**
mkdir -p /var/s3fs-demo-fs
[root@ip-172-31-41-86 s3fs-fuse]#
[root@ip-172-31-41-86 s3fs-fuse]# aws s3 mb s3://s3fs-demobk
make_bucket: s3fs-demobk
[root@ip-172-31-41-86 s3fs-fuse]# s3fs s3fs-demobk /var/s3fs-demo-fs -o iam_role-ec2t
os3
-bash: s3fs: command not found
[root@ip-172-31-41-86 s3fs-fuse]# bash
[root@ip-172-31-41-86 s3fs-fuse]# s3fs
bash: s3fs: command not found
###FIX S3FS NOT FOUND###
yum install gcc libstdc++-devel gcc-c++ curl-devel libxml2-devel openssl-devel mailcap fuse fuse-devel
wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz
tar xvzf s3fs-1.61.tar.gz
cd s3fs-1.61/
./configure --prefix=/usr
make
make install
vim /etc/passwd-s3fs
chmod 640 /etc/passwd-s3fs
s3fs yourBucketNameHere /mnt
s3fs s3fs-demobk /var/s3fs-demo-fs -o iam_role_ec2tos3
to fix passwd-s3fs issue need to enter the accessid and key id
Access Key ID:AKIAJVTBI7PNBULL4XSA
Secret Access Key:OFKq1LcUkuBQ0BYF9oenCkZ/+EoQ8SrScwlD6Y2i
AKIAJVTBI7PNBULL4XSA:OFKq1LcUkuBQ0BYF9oenCkZ/+EoQ8SrScwlD6Y2i
s3fs s3fs-demobk /var/s3fs-demo-fs -o asswd_file=/etc/passwd-s3fs
syntax --->s3fs mybucketname /path/to/mountpoint -o passwd_file=/etc/passwd-s3fs