Handler missing on module 'awslambda' when code uploaded as zip file
<p>I have this code in a file called awslambda.js</p>

<pre><code>console.log('Loading function');

exports.bullion = function(event, context) {
    //console.log('Received event:', JSON.stringify(event, null, 2));
    var message = event.Records[0].Sns.Message;
    console.log('From SNS:', message);
    context.succeed(message);
};
</code></pre>

<p>I zip it up so it looks like this:</p>

<pre><code>bullion $ unzip -l target/bullion-dev-for-lambda.zip
Archive:  target/bullion-dev-for-lambda.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
      268  02-05-16 10:39   awslambda.js
 --------                   -------
      268                   1 file
</code></pre>

<p>I upload it to AWS Lambda and configure the Handler to be</p>

<pre><code>awslambda.bullion
</code></pre>

<p>I test the function and I get</p>

<pre><code>{
  "errorMessage": "Handler 'bullion' missing on module 'awslambda'"
}
</code></pre>

<p>If I type the same code into a Lambda function it works!  What's the special case with the zip file upload?</p>