Skip to content

Instantly share code, notes, and snippets.

@mdesanti
Created February 14, 2016 18:06
Show Gist options
  • Save mdesanti/225fabbaf3b7d4fab02e to your computer and use it in GitHub Desktop.
Save mdesanti/225fabbaf3b7d4fab02e to your computer and use it in GitHub Desktop.
Create SimpleDb Domain
var AWS = require('aws-sdk');
var simpledb = new AWS.SimpleDB({
endpoint: 'sdb.amazonaws.com',
region: 'us-east-1'
});
var params = {
DomainName: 'STRING_VALUE' /* required */
};
simpledb.createDomain(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment