title: Creating a lambda function in AWS from zip file
body: <p>I am trying to create a simple lambda function, and I'm running into an error.</p>
  <p>My code is basically</p>
  <pre><code>console.log('Loading function');
  
  exports.handler = function(event, context) {
      console.log('value1 =', event.key1);
      console.log('value2 =', event.key2);
      console.log('value3 =', event.key3);
      context.succeed(event.key1);  // Echo back the first key value
      // context.fail('Something went wrong');
  }
  </code></pre>
  <p>in a helloworld.js file. I zip that up and upload it as a zip file in the creating a lambda function section, and I keep getting this error:</p>
  <pre><code>{
    &quot;errorMessage&quot;: &quot;Cannot find module 'index'&quot;,
    &quot;errorType&quot;: &quot;Error&quot;,
    &quot;stackTrace&quot;: [
      &quot;Function.Module._resolveFilename (module.js:338:15)&quot;,
      &quot;Function.Module._load (module.js:280:25)&quot;,
      &quot;Module.require (module.js:364:17)&quot;,
      &quot;require (module.js:380:17)&quot;
    ]
  }
  </code></pre>
  <p>Does anyone have any ideas?</p>