AWS EFSの構築手順

EFSの作成

aws efs create-file-system --creation-token "testefs" --performance-mode "generalPurpose"

nfsのインストール

CentOS

sudo yum install -y nfs-utils

Ubuntu

sudo apt-get install nfs-common

mountするディレクトリを作成

mkdir /mnt/efs

mount

sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 MOUNT_TARGET_IP:/ /mnt/efs