Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Added the ability to inject a custom AmazonS3 client
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Shahoiko committed Jul 19, 2023
1 parent c0048e3 commit a469abd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public ExternalPayloadStorage s3ExternalPayloadStorage(
havingValue = "true",
matchIfMissing = true)
@Bean
public AmazonS3 amazonS3() {
return AmazonS3ClientBuilder.standard().withRegion(region).build();
public AmazonS3 amazonS3(S3Properties properties) {
return AmazonS3ClientBuilder.standard().withRegion(properties.getRegion()).build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public S3PayloadStorage(IDGenerator idGenerator, S3Properties properties, Amazon
this.s3Client = s3Client;
bucketName = properties.getBucketName();
expirationSec = properties.getSignedUrlExpirationDuration().getSeconds();
String region = properties.getRegion();
}

/**
Expand Down

0 comments on commit a469abd

Please sign in to comment.