Revert "fix(S3): instatiate new Region if it's not provided by the SDK"

This reverts commit ecaa9d4b00ac87fee1711376492334284290596f.
This commit is contained in:
Julian Raufelder 2021-04-28 16:01:15 +02:00 committed by Manuel Jenny
parent 91a0c2e5d3
commit ac46aa6a57
No known key found for this signature in database
GPG Key ID: 1C80FE62B2BEAA18

View File

@ -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);