Skip to content

Instantly share code, notes, and snippets.

@hrdmtr
Created November 20, 2013 06:18
Show Gist options
  • Save hrdmtr/7558597 to your computer and use it in GitHub Desktop.
Save hrdmtr/7558597 to your computer and use it in GitHub Desktop.
s3fsを使ってEC2からS3をマウントする方法 ref: http://qiita.com/hrdmtr/items/155f25e50e4dcb287979
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
# 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