First, install S3fs-fuse and dependent packages
1. Installing dependent Packages
On CentOS7 or AMI Linux 7:# yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make Openssl-deve LOn Ubuntu 14.04 or later:$ sudo apt-get install automake autotools-dev fuse g++ git libcurl4-openssl-dev libfuse-dev Libs Sl-dev Libxml2-dev make Pkg-config
2. Installing S3fs-fuse
# cd/usr/local/# git clone https://github.com/s3fs-fuse/s3fs-fuse.git# cd s3fs-fuse#./autogen.sh#./configure# make# ma Ke Install
Second, import IAM user credentials
Iam-> User (user with S3 permissions), security certificate, create access key--download file to local
# echo myidentity:mycredential > ~/.passwd-s3fs# chmod ~/.passwd-s3fs
Third, Mount S3 bucket to local
1. Manual Mount
# mkdir/mnt/s3# S3fs-o passwd_file=~/.passwd-s3fs-o endpoint=us-east-2-o allow_other mybucket_name/mnt/s3
2. Write/etc/fstab boot auto mount
# VIM/ETC/FSTABMYBUCKET_NAME/MNT/S3 Fuse.s3fs _netdev,allow_other 0 0
Use S3fs-fuse to mount S3 buckets on AWS Linux Instances