Skip to content

Commit

Permalink
Revert "OPHYK-2 Use S3CrtAsyncClient as recommended by AWS"
Browse files Browse the repository at this point in the history
This reverts commit 26e1785.

Hit an unexpected error that might be the same issue as this:
aws/aws-sdk-java-v2#4935
  • Loading branch information
rce committed Apr 9, 2024
1 parent 2f30861 commit a13098b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions koodisto-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
</dependency>
<dependency>
<groupId>software.amazon.awssdk.crt</groupId>
<artifactId>aws-crt</artifactId>
<version>0.29.14</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3-transfer-manager</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public StsAssumeRoleCredentialsProvider lampiCredentialsProvider(AwsCredentialsP

@Bean
public S3AsyncClient lampiS3Client(StsAssumeRoleCredentialsProvider lampiCredentialsProvider) {
return S3AsyncClient.crtBuilder()
return S3AsyncClient.builder()
.credentialsProvider(lampiCredentialsProvider)
.region(REGION)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public AwsCredentialsProvider opintopolkuCredentialsProvider() {

@Bean
public S3AsyncClient opintopolkuS3Client(AwsCredentialsProvider opintopolkuCredentialsProvider) {
return S3AsyncClient.crtBuilder()
return S3AsyncClient.builder()
.credentialsProvider(opintopolkuCredentialsProvider)
.region(REGION)
.build();
Expand Down

0 comments on commit a13098b

Please sign in to comment.