I'm getting the error
"The bucket is in this region: us-east-1. Please use this region to..."
when trying to delete a bucket
s3.deleteObject(new DeleteObjectRequest(bucketName, var));
I'm executing a java application in ca-central-1 and accessing buckets that are in ca-central-1 according to the region column in the AWS S3 Management Console.
The folder in question is a child of a bucket that is displayed as existing in the ca-central-1 region.
Is it possible to that a folder of a bucket in ca-central-1 is in us-east-1 for example if I moved the bucket from us-east-1 bucket to a bucket in ca-central-1?
I note that the folders in a bucket don't have a region displayed in the management console. The error doesn't make sense to me as the bucket of which the folder in question is in is clearly marked as being ca-central-1.
Maven
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.11.700</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-sts</artifactId>
<version>1.11.701</version>
</dependency>
Regards Conteh
