EFS - Demo Lab Error(Mount attempt 1/3 failed due to timeout after 15 sec, wait 0 sec before next attempt.)

As part of AWS Solutions Architect Associate Certification course I am currently trying to do practice EFS-Demo and getting the following error

[ec2-user@ip-172-31-25-12 ~]$ sudo mkdir /efsdemo
[ec2-user@ip-172-31-25-12 ~]$ sudo dnf -y install amazon-efs-utils
Last metadata expiration check: 0:10:29 ago on Wed Aug 14 14:18:35 2024.
Dependencies resolved.

Package Architecture Version Repository Size

Installing:
amazon-efs-utils x86_64 2.0.4-1.amzn2023 amazonlinux 1.4 M
Installing dependencies:
stunnel x86_64 5.58-1.amzn2023.0.2 amazonlinux 156 k

Transaction Summary

Install 2 Packages

Total download size: 1.5 M
Installed size: 5.5 M
Downloading Packages:
(1/2): stunnel-5.58-1.amzn2023.0.2.x86_64.rpm 1.6 MB/s | 156 kB 00:00
(2/2): amazon-efs-utils-2.0.4-1.amzn2023.x86_64.rpm 11 MB/s | 1.4 MB 00:00

Total 8.3 MB/s | 1.5 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : stunnel-5.58-1.amzn2023.0.2.x86_64 1/2
Running scriptlet: stunnel-5.58-1.amzn2023.0.2.x86_64 1/2
Installing : amazon-efs-utils-2.0.4-1.amzn2023.x86_64 2/2
Running scriptlet: amazon-efs-utils-2.0.4-1.amzn2023.x86_64 2/2
Verifying : amazon-efs-utils-2.0.4-1.amzn2023.x86_64 1/2
Verifying : stunnel-5.58-1.amzn2023.0.2.x86_64 2/2

Installed:
amazon-efs-utils-2.0.4-1.amzn2023.x86_64 stunnel-5.58-1.amzn2023.0.2.x86_64

Complete!
[ec2-user@ip-172-31-25-12 ~]$ sudo mount.
sudo: mount.: command not found
[ec2-user@ip-172-31-25-12 ~]$ sudo mount.efs fs-02b583c00344516a7 /ebsdemo
b’mount.nfs4: mount point /ebsdemo does not exist’
[ec2-user@ip-172-31-25-12 ~]$ sudo mount.efs fs-02b583c00344516a7 /efsdemo
Mount attempt 1/3 failed due to timeout after 15 sec, wait 0 sec before next attempt.
Mount attempt 2/3 failed due to timeout after 15 sec, wait 0 sec before next attempt.
b’mount.nfs4: Connection timed out’
[ec2-user@ip-172-31-25-12 ~]$

I gave this a try and TBH, I got the same error you did. The instructor is not very clear in the demo what he did with the security groups, and I suspect this is the problem. Too many hand waves in the demo to replicate what he did easily :frowning:

Spoke too soon. Got it to work. Follow the part of the video about mount points carefully; you don’t need to worry much about security groups – just use the defaults. I created two ec2 instances, and both can see and use the EFS volume. I create the first EC2 instance so that I have a working VPC and to create a keypair; I then created the EFS volume, taking care that there were mount points in the same region. It was then possible to install the efs utilities, create the mount directory, and use mount.efs to mount the efs to the mount directory. Pretty much as you saw in the video.