-
-
Save AlejandroJL/d8dc999860ef4fee8059d10ef04536ef to your computer and use it in GitHub Desktop.
Steps to be done for mounting s3 bucket on an amazon ec2 instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download the proper versions of s3fs and fuse | |
wget http://s3fs.googlecode.com/files/s3fs-1.73.tar.gz | |
wget http://downloads.sourceforge.net/project/fuse/fuse-2.X/2.8.4/fuse-2.8.4.tar.gz | |
# unpack them | |
tar -xzf s3fs-1.73.tar.gz | |
tar -xzf fuse-2.8.4.tar.gz | |
# install dependencies | |
yum install gcc libstdc++-devel gcc-c++ curl-devel libxml2-devel openssl-devel mailcap | |
# s3fs require fuse so install it first | |
cd fuse-2.8.4 | |
./configure --prefix=/usr | |
make | |
make install | |
# now install s3fs | |
cd ../s3fs-1.73 | |
./configure --prefix=/usr | |
make | |
make install | |
# make credentials file and give it proper permissions | |
vi /etc/passwd-s3fs | |
#enter the credentials in this file format is access_id:secret_key | |
chmod 600 /etc/passwd-s3fs | |
# All done ready to mount | |
mkdir /s3-bucketname | |
/usr/bin/s3fs -o host=http://s3-ap-southeast-1.amazonaws.com bucketname.spinr.in /s3-bucketname | |
# verify bucket is mounted properly using `df -h` | |
# reference: http://www.goworkday.com/2013/08/01/s3fs-installation-on-centos-6-3-ec2/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment