Amazon S3
Jump to navigation
Jump to search
Mount S3 bucket
- "Simple Storage Service"
- create 2 buckets
- timothydickephotography for the site (read only for the world, read/write for me)
- timrawdata (read/write for me only)
- in permissions modify the bucket policy
- Add read only permission to anonymous user
- Use s3fs to mount bucket to EC2
wget https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.80.tar.gz mv v1.80.tar.gz s3fs-fuse-v1.80.tar.gz tar zxvf s3fs-fuse-v1.80.tar.gz cd s3fs-fuse-1.80/ sudo yum install automake ./autogen.sh sudo yum install curl-devel fuse-devel libxml2-devel openssl-devel ./configure --prefix=/usr --with-openssl make sudo make install
- AWS IAM Management: (it's really as simple as this)
- Create group with S3 privileges
- Create user in group
- Get access key and password
- put them in /etc/passwd-s3fs
- Create your mount point
sudo su cd /mnt mkdir timothydickephotography chown ec2-user:ec2-user /mnt/timothydickephotography Ctrl-D
- /usr/bin/s3fs timothydickephotography /mnt (No sudo!)