title: Configuring region in Node.js AWS SDK
body: <p>Can someone explain how to fix a missing config error with Node.js? I've followed all the examples from the <a href="http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html">aws doc page</a> but I still get this error no matter what.</p>
  
  <pre><code>{ [ConfigError: Missing region in config]
  message: 'Missing region in config',
  code: 'ConfigError',
  time: Wed Jun 24 2015 21:39:58 GMT-0400 (EDT) }&gt;{ thumbnail: 
   { fieldname: 'thumbnail',
   originalname: 'testDoc.pdf',
   name: 'testDoc.pdf',
   encoding: '7bit',
   mimetype: 'application/pdf',
  path: 'uploads/testDoc.pdf',
   extension: 'pdf',
   size: 24,
   truncated: false,
   buffer: null } }
   POST / 200 81.530 ms - -
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>var express = require('express');
  var router = express.Router();
  var AWS = require('aws-sdk');
  var dd = new AWS.DynamoDB();
  var s3 = new AWS.S3();
  var bucketName = 'my-bucket';
  
  AWS.config.update({region:'us-east-1'});
  
  (...)
  </code></pre>