Ref: https://learn.cantrill.io/courses/1820301/lectures/41301665 and https://learn.cantrill.io/courses/1820301/lectures/41301666
df -k
— List all mounted FSs in the Linux OS (we can see there is no EFS file system yet)
-k
→ show available space in kBsudo mkdir -p /efs/wp-content
— Make a directory with specified path and name
-p
→ the specified path will be created if it doesn't already existsudo dnf -y install amazon-efs-utils
— Install a package of tools to interact with EFS
-y
→ acknowledges (”yes”) all promptssudo nano /etc/fstab
— Open FSTAB file to edit it
<file-system-id>:/ /efs/wp-content efs _netdev,tls,iam 0 0
<file-system-id>
with the ID of the FS in EFS!sudo mount /efs/wp-content
— Mount the specified directory according to the FSTAB file configurationdf -k
— We can now see that the EFS file system is mounted in the instance/efs/wp-content
and e.g. add a file
Ref: https://learn.cantrill.io/courses/1820301/lectures/41301667