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

This commit is contained in:
Manuel Jenny 2021-04-28 13:34:46 +02:00
parent 1a3b26696c
commit 4f97a0d8d8
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 = Region.getRegion(Regions.DEFAULT_REGION);
region = new Region(cloud.s3Region(), null);
}
AmazonS3Client client = new AmazonS3Client(new BasicAWSCredentials(decrypt(cloud.accessKey(), context), decrypt(cloud.secretKey(), context)), region);