Skip to content

Instantly share code, notes, and snippets.

@nagoodman
Created December 21, 2011 23:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nagoodman/1508111 to your computer and use it in GitHub Desktop.
Save nagoodman/1508111 to your computer and use it in GitHub Desktop.
Create S3 Bucket using Knox
// 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();
@erdogankaya
Copy link

what is dynAws ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment