aws/aws-sdk-java — pull request #152 by kelcecil (2013-12-08 15:54:39+00:00)
Title: Use getRegion to determine where a bucket should be created when using createBucket(bucketName)

This addresses issue #89. There is a getRegion method already provided in AmazonS3Client that tries to pull the region from the superclass and defaults back to US_Standard when one is not set. Passing the result from getRegion as the region parameter in CreateBucketRequest is a simple way to implement the desired behavior.