diff --git a/pom.xml b/pom.xml index 41b222082..8301691ad 100644 --- a/pom.xml +++ b/pom.xml @@ -38,7 +38,6 @@ - 1.12.376 2.19.8 3.19.0 1.9.0 @@ -109,13 +108,6 @@ pom import - - com.amazonaws - aws-java-sdk-bom - ${aws.sdk.version} - pom - import - software.amazon.awssdk bom diff --git a/service/pom.xml b/service/pom.xml index 445835bc4..7c86bb45a 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -306,18 +306,10 @@ software.amazon.awssdk appconfigdata - - com.amazonaws - aws-java-sdk-core - - - com.amazonaws - aws-java-sdk-sts - com.amazonaws dynamodb-lock-client - 1.1.0 + 1.2.0 commons-logging diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java b/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java index 642ef5a78..8bd0c94b9 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java @@ -7,10 +7,6 @@ package org.whispersystems.textsecuregcm; import static com.codahale.metrics.MetricRegistry.name; import static java.util.Objects.requireNonNull; -import com.amazonaws.ClientConfiguration; -import com.amazonaws.auth.AWSCredentialsProviderChain; -import com.amazonaws.services.dynamodbv2.AmazonDynamoDB; -import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder; import com.google.api.client.googleapis.auth.oauth2.GoogleIdTokenVerifier; import com.google.api.client.http.apache.v2.ApacheHttpTransport; import com.google.api.client.json.gson.GsonFactory; @@ -235,12 +231,6 @@ public class WhisperServerService extends Application bootstrap) { // `SecretStore` needs to be initialized before Dropwizard reads the main application config file. @@ -297,15 +287,6 @@ public class WhisperServerService extends Application schemas; private DynamoDbClient dynamoDB2; private DynamoDbAsyncClient dynamoAsyncDB2; - private AmazonDynamoDB legacyDynamoClient; public DynamoDbExtension(TableSchema... schemas) { this.schemas = List.of(schemas); @@ -165,11 +158,6 @@ public class DynamoDbExtension implements BeforeEachCallback, AfterEachCallback .credentialsProvider(StaticCredentialsProvider.create( AwsBasicCredentials.create("accessKey", "secretKey"))) .build(); - legacyDynamoClient = AmazonDynamoDBClientBuilder.standard() - .withEndpointConfiguration( - new AwsClientBuilder.EndpointConfiguration("http://localhost:" + port, "local-test-region")) - .withCredentials(new AWSStaticCredentialsProvider(new BasicAWSCredentials("accessKey", "secretKey"))) - .build(); } public DynamoDbClient getDynamoDbClient() { @@ -180,7 +168,4 @@ public class DynamoDbExtension implements BeforeEachCallback, AfterEachCallback return dynamoAsyncDB2; } - public AmazonDynamoDB getLegacyDynamoClient() { - return legacyDynamoClient; - } }