Created
August 4, 2017 16:19
-
-
Save ravi9/85c9a2c321de5a8a25339b667cd7c5c8 to your computer and use it in GitHub Desktop.
Mount AWS S3 bucket on Ubuntu 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
| sudo apt-get update | |
| sudo apt-get install automake autotools-dev fuse g++ git libcurl4-gnutls-dev libfuse-dev libssl-dev libxml2-dev make pkg-config | |
| git clone https://github.com/s3fs-fuse/s3fs-fuse.git | |
| cd s3fs-fuse | |
| ./autogen.sh | |
| ./configure | |
| make | |
| sudo make install | |
| cd | |
| echo AccessKeyID:SECRETKEY > ~/passwd-s3fs | |
| chmod 600 ~/passwd-s3fs | |
| mkdir ~/s3-mount | |
| sudo s3fs s3-bucket-name ~/s3-mount -o passwd_file=~/passwd-s3fs | |
| sudo ls ~/s3-mount | |
| #For debugging information | |
| sudo s3fs s3-bucket-name ~/s3-mount -o passwd_file=~/passwd-s3fs -d -d -f -o f2 -o curldbg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment