AWS SDK Java having issue with getting bucket location
Here is a piece of code based on AWS Java SDK, the bucket location always gives as "default", which is incorrect.
AmazonS3 s3Client = getS3ClientConnection(Regions.US_EAST_1.getName());
GetBucketLocationRequest req = new GetBucketLocationRequest(b.getName());
String loc = s3Client.getBucketLocation(req);
Hey @Nanda. Since I'm not super familiar with the AWS Java SDK syntax, I'm not sure why you're getting "default" as a persistent location. One of our Object Storage engineers was able to track down some resources that might point you in the right direction, though.
Linode Object Storage uses Ceph. Most SDKs in this list work out of the box, but there may be some tinkering needed since not all s3 SDKs are 100% compatible with Ceph. This post directly from Ceph has examples of compatible Java syntax:
And here's Amazon's guide on using their Java SDK:
I'm not sure what you've tried already, but hopefully these help!