title: How to trigger my Lambda Function once the file is uploaded to s3 bucket
body: <blockquote>
    <p>I have upload a zip file to S3 bucket.I need to trigger my below
    lambda<br>
        function immediately once the zip file has been uploaded.Kindly help me how 
        to proceed</p>
  </blockquote>
  
  <pre><code>exports.handler = function (event, context) { 
  
  MyLambdaFuntion();
  }
  
  MyLambdaFuntion()
  {
  var bucketName = "TestBucket1";
  var fileKey = "test.js";
  s3.getObject(params, function (err, data) {
  if (err)
      console.log(err, err.stack);
     else {
            console.log(data);
         }
   });
  }
  </code></pre>