fix(S3): instatiate new Region if it's not provided by the SDK
This commit is contained in:
parent
1a3b26696c
commit
4f97a0d8d8
@ -26,7 +26,7 @@ class S3ClientFactory {
|
|||||||
Region region = Region.getRegion(cloud.s3Region());
|
Region region = Region.getRegion(cloud.s3Region());
|
||||||
|
|
||||||
if (region == null) {
|
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);
|
AmazonS3Client client = new AmazonS3Client(new BasicAWSCredentials(decrypt(cloud.accessKey(), context), decrypt(cloud.secretKey(), context)), region);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user