title: AWS node.js not creating S3 bucket?
body: <p>I'm trying to use the basic tutorial to create an S3 bucket as follows</p>
  
  <pre><code>var AWS = require('aws-sdk');
  
  AWS.config.loadFromPath('./myawsconfig.json');
  AWS.config.update({region: 'eu-west-1'});
  
  var s3 = new AWS.S3();
  s3.client.createBucket({Bucket: 'pBucket'}, function() {
    var data = {Bucket: 'pBucket', Key: 'myKey', Body: 'Hello!'};
    s3.client.putObject(data, function(err, data) {
      if (err) {
        console.log("Error uploading data: ", err);
      } else {
        console.log("Successfully uploaded data to myBucket/myKey");
      }
    });
  });
  </code></pre>
  
  <p>But I'm receiving the following error</p>
  
  <pre><code>node createbucket.js
  Error uploading data:  { [NoSuchBucket: The specified bucket does not exist]
    message: 'The specified bucket does not exist',
    code: 'NoSuchBucket',
    name: 'NoSuchBucket',
    statusCode: 404,
    retryable: false }
  </code></pre>