EFSのルートを/etc/letsencryptをマウントする方法は、
1. パッケージのインストール (Ubuntuの場合)
1 |
# apt-get -y install nfs-common |
2. 下記を/etc/fstabに記述する
1 |
YOUR_EFS.efs.ap-northeast-1.amazonaws.com:/ /etc/letsencrypt nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,_netdev 0 0 |
3. セキュリティグループの作成
EFSサイドは2049 inboundをオープン。EC2側は2049のoutboundをオープン(outboundは基本全オープンだと思う)
4. 該当ディレクトリを作成し、fstabのReload
1 2 |
# mkdir /etc/letsencrpyt # mount -a |