A memorandum because I couldn't just say what other Qiita articles said.
EFS (Elastic File System) is convenient as a file server, https://docs.aws.amazon.com/ja_jp/efs/latest/ug/mounting-fs.html It is convenient to use the mount helper as described in .com / ja_jp / efs / latest / ug / mounting-fs.html). By default with the Amazon Linux 2 AMI
sudo mount -t efs fs-12345678:/ /mnt/efs
You can easily do it like this, but if you use other distributions such as Ubuntu base, this is not included, so make a note.
The official says that you should include amazon-efs-utils (https://docs.aws.amazon.com/ja_jp/efs/latest/ug/installing-other-distro.html)わけですが,ちょっとだけトラブったのでメモ.
Requires sudo apt update & sudo apt upgrade
.
sudo apt update
sudo apt upgrade
sudo apt install -y stunnel4
git clone https://github.com/aws/efs-utils
cd efs-utils
sudo apt install -y binutils
./build-deb.sh
sudo apt install -y ./build/amazon-efs-utils*deb
You have to sudo apt install -y stunnel4
The following packages have unmet dependencies: amazon-efs-utils : Depends: stunnel4 (>= 4.56) but it is not installable E: Unable to correct problems, you have held broken packages.
I often see people getting angry. Also, if you look closely at the error
sudo apt install -y binutils
You can also see that you should do it. But even with this, the version dependencies did not match.
So
sudo apt update
sudo apt upgrade
It was ok.
later
sudo mount -t efs fs-12345678:/ /mnt/efs
it can.
Recommended Posts