public
Last active

Create S3 Bucket using Knox

  • Download Gist
s3bucketcreate
1 2 3 4 5 6 7 8
// Create S3 bucket
var s3client = dynAws.getKnoxClient("bucketname");
var httpReq = s3client.put("/", {});
httpReq.on('response', function (response) {
// 200 indicates successful bucket creation
console.log(response.statusCode);
}).end();

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.