var fmt = require('fmt');
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var DynamoDB = awssum.load('amazon/dynamodb').DynamoDB;

var env             = process.env;
var accessKeyId     = env.ACCESS_KEY_ID;
var secretAccessKey = env.SECRET_ACCESS_KEY;
var awsAccountId    = env.AWS_ACCOUNT_ID;

var ddb = new DynamoDB({
    'accessKeyId' : accessKeyId,
    'secretAccessKey' : secretAccessKey,
    'awsAccountId' : awsAccountId,
    'region' : amazon.US_EAST_1
});

fmt.field('Region', ddb.region() );
fmt.field('EndPoint', ddb.host() );
fmt.field('AccessKeyId', ddb.accessKeyId() );
fmt.field('SecretAccessKey', ddb.secretAccessKey().substr(0, 3) + '...' );
fmt.field('AwsAccountId', ddb.awsAccountId() );

ddb.ListTables(function(err, data) {
    fmt.msg("listing all the tables - expecting success");
    fmt.dump(err, 'Error');
    fmt.dump(data, 'Data');
});

@@ -486,16 +486,191 @@
 _1%0A%7D);%0A%0A
+var ddbWest = new DynamoDB(%7B%0A    'accessKeyId' : accessKeyId,%0A    'secretAccessKey' : secretAccessKey,%0A    'awsAccountId' : awsAccountId,%0A    'region' : amazon.US_WEST_2%0A%7D);%0A%0A
 fmt.fiel
@@ -976,16 +976,203 @@
  tables 
+in us-east-1 - expecting success%22);%0A    fmt.dump(err, 'Error');%0A    fmt.dump(data, 'Data');%0A%7D);%0A%0AddbWest.ListTables(function(err, data) %7B%0A    fmt.msg(%22listing all the tables in us-west-1 
 - expect

Add a test so that other regions are fine with DynamoDB using the STS service