mount-s3
설치 및 사용
설치
[root@ip-172-31-5-165 ~]# yum -y install https://s3.amazonaws.com/mountpoint-s3-release/latest/x86_64/mount-s3.rpm
...
Installed:
mount-s3.x86_64 0:1.0.0-1
Dependency Installed:
fuse.x86_64 0:2.9.2-11.amzn
aws configure
[root@ip-172-31-5-165 ~]# aws configure
AWS Access Key ID [None]: ******************
AWS Secret Access Key [None]: ******************
Default region name [None]: ap-northeast-2
Default output format [None]: json
[root@ip-172-31-5-165 ~]# aws s3 ls | tail -n1
2023-01-17 01:12:23 s3fsmounttest
mount
[root@ip-172-31-5-165 ~]# mount-s3 s3fsmounttest /root/test
bucket s3fsmounttest is mounted at /root/test
[root@ip-172-31-5-165 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 479016 0 479016 0% /dev
tmpfs 487796 0 487796 0% /dev/shm
tmpfs 487796 412 487384 1% /run
tmpfs 487796 0 487796 0% /sys/fs/cgroup
/dev/xvda1 8376300 1806468 6569832 22% /
tmpfs 97560 0 97560 0% /run/user/1000
[root@ip-172-31-5-165 ~]# mount | grep test
mountpoint-s3 on /root/test type fuse (rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions)
테스트
[root@ip-172-31-5-165 ~]# cp mount-s3.rpm /root/test/
[root@ip-172-31-5-165 ~]# ls -la /root/test
total 10189
drwxr-xr-x 2 root root 0 Aug 10 04:31 .
dr-xr-x--- 5 root root 147 Aug 10 04:31 ..
-rw-r--r-- 1 root root 10432224 Aug 10 04:31 mount-s3.rpm
-rw-r--r-- 1 root root 68 May 11 04:01 prj.txt
[root@ip-172-31-5-165 ~]# aws s3 ls s3testfsmount
2023-08-10 04:31:57 10432224 mount-s3.rpm
2023-05-11 04:01:01 68 prj.txt