Setup Amazon EFS as Internal Storage?

Hi, I recently installed nextcloud on my server and started testing it out. I’m interesting in Amazon EFS (Elastic File System) as internal storage but couldn’t find related information. I have 2 main question:

  1. Is possible setup Amazon EFS as internal storage? How?
  2. It’s worth it use Amazon EFS vs Amazon S3?

I have no experience with efs so take this with a grain of salt… I have setup NFS mounts as internal storage, so as long as efs can be directly mounted then there shouldn’t be any problem. I imagine if you couldn’t mount it you would have to find or write a next cloud plugin to provide integration.

  1. follow the aws instructions. you’ll end up with something like: sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-xxx.efs.<region> <mount-point>