title: AWS Lambda EFS | EACCES: permission denied
body: <p>So, I am trying to integrate my lambda function with EFS. I am able to access the root directory (as read-only from lambda) as I can see <code>xyz</code> directory available in my root dir. <code>/mnt/</code> -&gt; <code>xyz</code></p>
  <p>When I try to access <code>/mnt/xyz</code> or <code>/mnt/xyz/</code> then I get this error:</p>
  <pre><code>{
    &quot;errorType&quot;: &quot;Error&quot;,
    &quot;errorMessage&quot;: &quot;EACCES: permission denied, scandir '/mnt/xyz/'&quot;,
    &quot;trace&quot;: [
      &quot;Error: EACCES: permission denied, scandir '/mnt/xyz/'&quot;,
      &quot;    at Object.readdirSync (fs.js:948:3)&quot;,
      &quot;    at Runtime.exports.handler (/var/task/index.js:19:24)&quot;,
      &quot;    at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)&quot;
    ]
  }
  </code></pre>
  <p>Permission given to the access point: 777</p>