
const AWS = require('aws-sdk');
const config = require('./config');

const s3 = new AWS.S3();

s3.createBucket({ Bucket: config.BOOK_BUCKET }, (err, data) => {
  if (err) {
    console.error(`Error creating bucket ${config.BOOK_BUCKET}`);
    console.error(err);
  } else {
    console.error(`${config.BOOK_BUCKET} bucket created`);
    console.log(data);
  }
});

@@ -63,16 +63,247 @@
 fig');%0A%0A
+if (process.argv.length %3C 2 %7C%7C process.argv.length %3E 3) %7B%0A  console.error('Usage: node create_bucket.js %3CBUCKET_NAME%3E');%0A  process.exit(1);%0A%7D%0A%0Aconst bucketName = (process.argv.length === 2 ? config.BOOK_BUCKET : process.argv%5B2%5D);%0A%0A
 const s3
@@ -346,34 +346,26 @@
 Bucket: 
-config.BOOK_BUCKET
+bucketName
  %7D, (err
@@ -433,34 +433,26 @@
 ucket $%7B
-config.BOOK_BUCKET
+bucketName
 %7D%60);%0A   
@@ -504,34 +504,26 @@
 rror(%60$%7B
-config.BOOK_BUCKET
+bucketName
 %7D bucket

Add bucket name parameter