Revert "fix(S3): instatiate new Region if it's not provided by the SDK"
This reverts commit ecaa9d4b00ac87fee1711376492334284290596f.
This commit is contained in:
parent
91a0c2e5d3
commit
ac46aa6a57
@ -26,7 +26,7 @@ class S3ClientFactory {
|
||||
Region region = Region.getRegion(cloud.s3Region());
|
||||
|
||||
if (region == null) {
|
||||
region = new Region(cloud.s3Region(), null);
|
||||
region = Region.getRegion(Regions.DEFAULT_REGION);
|
||||
}
|
||||
|
||||
AmazonS3Client client = new AmazonS3Client(new BasicAWSCredentials(decrypt(cloud.accessKey(), context), decrypt(cloud.secretKey(), context)), region);
|
||||
|
Loading…
x
Reference in New Issue
Block a user