-
-
Save hrdmtr/7558597 to your computer and use it in GitHub Desktop.
s3fsを使ってEC2からS3をマウントする方法 ref: http://qiita.com/hrdmtr/items/155f25e50e4dcb287979
This file contains 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 echo "{Access Key ID}:{Secret Access Key}" > /etc/passwd-s3fs | |
sudo chmod 640 /etc/passwd-s3fs | |
sudo mkdir /mnt/s3 | |
sudo /usr/local/bin/s3fs {bucket_name} /mnt/s3 -ouse_cache=/tmp |
This file contains 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
# df | |
Filesystem 1K-blocks Used Available Use% Mounted on | |
/dev/xvda1 8256952 6706132 1466964 83% / | |
tmpfs 304236 0 304236 0% /dev/shm | |
s3fs 274877906944 0 274877906944 0% /mnt/s3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment