I added a check to see if a region is passed and if is us-east-1 (us standard) don't pass it since it's the default and it will throw an error.
Also the aws sdk doc says that region its optional but the actual optional part is the CreateBucketConfiguration since if you pass any value to region that its not in what they defined it will throw an error including undefined (the value that it will have if you don't specify a region).
I added a check to see if a region is passed and if is us-east-1 (us standard) don't pass it since it's the default and it will throw an error.
Also the aws sdk doc says that region its optional but the actual optional part is the CreateBucketConfiguration since if you pass any value to region that its not in what they defined it will throw an error including undefined (the value that it will have if you don't specify a region).