I am trying to use aws lambda and efs together so I can perform operations that exceed the default lambda storage limit of 500mb. I am confused what the difference is between Local mount path and Access point.
Is the local mount path a term used to describe where the file system is mounted in the existing file system and the access point (which also has it’s own path) the location that an application would reference in code? Or does it not actually matter which path is referenced?
FileSystemId: !Ref FileSystemResource
is how I create the access point and the mount path I have specified directly on the lambda for testing.
I guess the main confusion I am having is why are there 2 paths, what is the difference between them and which one should I use in my lambda?
Your EFS can have many directories on it:
AccessPointResource will only enable access to
/myefs. This folder will be basically the root to anyone who uses the access point. No other folder will be exposed through this access point.
/mnt/efs is the mount folder in the lambda container. So your function will be able to access
/myefs mounted in its local directory tree under the name of