title: AWS Lambda Function is returning Handler 'handler' missing on module 'index'
body: <p>Consider following code - </p>
  
  <pre><code>function index(event, context, callback) {
    //some code
  }
  exports.handler = index();
  
  {
    "errorMessage": "Handler 'handler' missing on module 'index'"
  }
  </code></pre>
  
  <p>This is my function which is having business logic. My javascript file name is <code>index.js</code>.</p>
  
  <p>Whenever I test this code on aws lambda, It gives following <code>log(failed)</code>.</p>
  
  <p>This is a screenshot of the Amazon Lambda Upload Site:
  <a href="https://i.stack.imgur.com/7pyzW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7pyzW.png" alt="enter image description here"></a></p>