티스토리 뷰

___퍼블릭 클라우드

[AWS] s3fs-fuse 설치

변군 변군이글루 2020. 8. 7. 13:18

s3fs-fuse 설치

 

리눅스 환경

##리눅스 환경
$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

$ uname -a
Linux krop-aaa-ek01 4.14.186-146.268.amzn2.x86_64 #1 SMP Tue Jul 14 18:16:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

 

s3fs-fuse 설치

##설치
$ sudo amazon-linux-extras install -y epel
$ sudo yum install -y s3fs-fuse

 

 

https://github.com/s3fs-fuse/s3fs-fuse 

 

s3fs-fuse/s3fs-fuse

FUSE-based file system backed by Amazon S3. Contribute to s3fs-fuse/s3fs-fuse development by creating an account on GitHub.

github.com

 

s3fs 설정

AWS ACCESS KEY/SECRET KEY 설정

$ echo ACCESS_KEY_ID:SECRET_ACCESS_KEY > ${HOME}/.passwd-s3fs
$ chmod 600 ${HOME}/.passwd-s3fs

 

마운트 포인트 디렉토리 생성

$ mkdir -p /apps/s3log

 

s3fs로 mount 설정
###s3fs bucket[:/path] mountpoint [options]

$ s3fs logcenter /apps/s3log

$ df -h | grep s3fs
s3fs            256T     0  256T   0% /apps/s3log

 

 

댓글
댓글쓰기 폼