title: AWS Lambda function to updload json to s3 bucket not working
body: <p>When I run this function, it says that it succeeds, but the file is not in the s3 bucket. </p>
  
  <pre><code>var AWS = require('aws-sdk');
  exports.handler = (event, context, callback) =&gt; {
  
      AWS.config.update({
          region: 'us-west-2',
          accessKeyId: 'xxx',
          secretAccessKey: 'xxx'
      });
  
      var s3 = new AWS.S3();
  
      s3.putObject({
          Bucket: 'mybucket',
          Key: 'test.json',
          Body: [{test: 'test'}, {test: 'test'}],
          ContentType: "application/json"
      }, function(){});
  
      context.succeed('SUCCESS');
  };
  </code></pre>