Showing posts from November, 2019

mounting AWS (Amazon Web Services) EFS on Linux Ubuntu 18.04

Amazon Elastic File System (Amazon EFS) is a scalable file storage for EC2 and services that run on EC2 (for example Kubernetes clusters). The device is accessible on Linux via the NFS protocol and can be used my multiple instances and pods at the same time. For more information on EFS visit AWS documentation. Step one: Gather information In our case ti is pretty straightforward. Ubuntu instance in the same VPC as the EFS and a DNS name of the file system we want to access. The format uses following convention: And the exact URL is available on AWS console AWS home under filesystem's DNS name or via cli Step two: Install the NFS Client for Linux $  sudo apt-get update $  sudo apt install nfs-kernel-server Step three: Mount the file system on EC2 instance. Create (if you don't have already) a mount point for the EFS $  sudo mkdir -p /mnt/efs-mount-point Mount the EFS share on the instance $  sudo mount -t