title: Lambda ENOENT: no such file or directory
body: <p>I am trying to read a file .yml inside an AWS Lambda function (Node 6.10.0).</p>
  
  <pre><code>console.log(__dirname + '/gameOptions.yml');
  console.log(path.resolve('./gameOptions.yml'));
  console.log(path.resolve('/gameOptions.yml'));
  console.log('./gameOptions.yml');
  console.log(process.cwd() + '/api/lib/gameOptions.yml');
  
  let doc = yaml.safeLoad(fs.readFileSync(path.resolve('./gameOptions.yml'), 'utf8'));
  </code></pre>
  
  <p>I have tried all possibles ways to do it, but always get <code>ENOENT: no such file or directory</code>.</p>
  
  <p>The file is at the same folder and it is an <code>.yml</code> so <code>require('')</code> also doesnt work.</p>
  
  <p>The results for the above code are:</p>
  
  <pre><code>/Users\marcus\Documents\Workspace\proak-api\proak-api\api\lib/gameOptions.yml
  /var/task/gameOptions.yml
  /gameOptions.yml
  ./gameOptions.yml
  /var/task/api/lib/gameOptions.yml
  </code></pre>
  
  <p>And it works locally.</p>