I am trying to mount AWS EFS to my local macbook (Also other local computers) However, after trying so many things, it is not working.
My port 22 and 2049 is wide open as a testing.
I tried few command like
mount -t nfs4 -o nfservers=4.1 xxx.xxx.xxx.xxx:/ efs/
But I am keep getting connection timed out
error.
Also I tried mounting this EFS to another AWS account EC2 instances. But keep getting same error.
For example. I have EFS in Account1 and EC2 in Account2 (Different VPC) and trying
sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 xxx.xxx.xxx.xxx:/ /efs/
It is not working.
It ONLY works if I have my EC2 in same Account (which is account1).
Is there a way I can mount this EFS in different account or local computers?
Did many google search and AWS forum search.. but no luck.
For those who are curious, try
sudo mount -t nfs -o vers=4,tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 -w host_ip:/ efs
worked for me via direct connect.