EFS mount on AWS Ubuntu EC2 (amazon-efs-utils)

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)わけですが,ちょっとだけトラブったのでメモ.

Conclusion

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

What I'm saying in other articles

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

EFS mount on AWS Ubuntu EC2 (amazon-efs-utils)
Install docker on AWS EC2
Install AWS IoT Greengrass on Ubuntu
ubuntu (AWS) LEMP
Recipe for deploying Rails apps on AWS EC2
EC2 on Docker-compose
tmux on Ubuntu
How to install Ruby on an EC2 instance on AWS
Memo to build a Servlet environment on AWS EC2
Deploy laravel using docker on EC2 on AWS ① (Create EC2 instance)
Screen recording on Ubuntu 20.04
Web Bluetooth on Ubuntu20.04
Try DisplayLink on Ubuntu 20.04
Launch Rails on EC2
Reinstall Kubernetes on Ubuntu 19.10
Use Flutter on Ubuntu
Install pyqt5 on ubuntu
Install Ruby on Ubuntu 20.04
Deploy RAILS on EC2
Setting JAVA_HOME on Ubuntu
Install Autoware on Ubuntu 18.04.5
Put JetBrains on Ubuntu
Use mkdir on ubuntu
Apache2 on Ubuntu20.04 LTS
Use cpplapack on ubuntu
ubuntu on wsl part 10
Install Homebrew on Ubuntu 20.04
Run tiscamera on Ubuntu 18.04
Build Zabbix on Ubuntu 20.04
Deploy laravel using docker on EC2 on AWS ② (Elastic IP acquisition-linking)
[AWS] Link memory usage of Ubuntu EC2 instance to CloudWatch
How to create an application server on an EC2 instance on AWS
Deploy laravel using docker on EC2 on AWS ④ (git clone ~ deploy, migration)
Build mate desktop environment on ec2 with terraform (Ubuntu 20.04LTS)
Try setting up Talend Open Studio on Amazon EC2 (ubuntu)
Gcc error solution with "pip install annoy" on AWS EC2