text: const AWS = require("aws-sdk");
  const s3 =  new AWS.S3();
  
  var params = {
      Bucket: "bucket-name"
  };
  
  s3.getBucketLocation(params , function(err,data){
      if(err){
          console.log(err,err.stack);   //error
      } else{
          console.log(data);     //successfull
      }
  });