IT/AWS

EC2 인스턴스에 S3마운트하기(작성중)

퍼킹카레맨 2022. 1. 11. 10:37

 

https://jjakang2.tistory.com/31

 

AWS#2 EC2 인스턴스에 S3 마운트 하는 법(goofys)

1) S3 버킷 생성하기 2) EC2 인스턴스에 goofys 설치하기 [root@test ~]# yum -y install golang fuse git *golang 패키지가 없을 경우 직접 설치 [root@test ~]#cd /usr/lib/golang/ [root@test ~]#wget http..

jjakang2.tistory.com

참고해서 작성하자.

AmazonSSMManagedInstanceCore


s3 mount goofys

 

golang 과 fuse 를 설치한다.

yum -y install golang fuse

 


# vim ~/.bash_profile 에 아래 내용을 추가한다.

export GOROOT=/usr/lib/golang
export GOBIN=$GOROOT/bin
export GOPATH=/usr/local/golang
export PATH=$PATH:$GOROOT/bin

 

go get 으로 받아올 폴더를 생성한다.

mkdir -p /usr/local/golang

 

 

 


[root@ip-10-0-0-144 ~]# go get github.com/kahing/goofys
# github.com/kahing/goofys/api/common
/usr/local/golang/src/github.com/kahing/goofys/api/common/conf_azure.go:272:34: accountsRes.Value undefined (type storage.AccountListResultPage has no field or method Value)
/usr/local/golang/src/github.com/kahing/goofys/api/common/conf_azure.go:373:35: not enough arguments in call to client.ListKeys
        have (context.Context, string, string)
        want (context.Context, string, string, storage.ListKeyExpand)

[root@ip-10-0-0-144 ~]# go install github.com/kahing/goofys
# github.com/kahing/goofys/api/common
/usr/local/golang/src/github.com/kahing/goofys/api/common/conf_azure.go:272:34: accountsRes.Value undefined (type storage.AccountListResultPage has no field or method Value)
/usr/local/golang/src/github.com/kahing/goofys/api/common/conf_azure.go:373:35: not enough arguments in call to client.ListKeys
        have (context.Context, string, string)
        want (context.Context, string, string, storage.ListKeyExpand)

 

 

https://qiita.com/charon/items/114601c585616c43e718

 

Goofysを使ってAmazon S3バケットをファイルシステムにマウントする - Qiita

What's? Amazon S3をファイルシステムとしてマウントできたらなぁと思って少し調べたら、s3fsというのが有名だということがわかりまして。 なんですけど、手元の環境ではs3fsでは上手くいかな

qiita.com