title: Lambda Timeout while communicating with S3
body: <p>I'm trying to simply list all the files in an S3 bucket using Lambda</p>
  
  <p>The code looks as follows:</p>
  
  <pre><code>var AWS = require('aws-sdk');
  var s3 = new AWS.S3();
  
  exports.handler = (event, context, callback) =&gt; {
  
     s3.listObjectsV2({
         Bucket: "bucketname",
     }, function(err, data) {
         console.log("DONE : " + err + " : " + data); 
  
         callback(null, 'Hello from Lambda');
      });
  };
  </code></pre>
  
  <p>Using the above, I never get the "DONE" printed at all. The log doesn't show any information except for the fact that it timed out.</p>
  
  <p>Is there any troubleshooting I could do here? I would've thought that at least the error would've been shown in the "DONE" section.</p>