diff --git a/libs/commons-database/src/main/kotlin/gov/cdc/ocio/database/dynamo/DynamoRepository.kt b/libs/commons-database/src/main/kotlin/gov/cdc/ocio/database/dynamo/DynamoRepository.kt index 9ec4be08..38db9bc8 100644 --- a/libs/commons-database/src/main/kotlin/gov/cdc/ocio/database/dynamo/DynamoRepository.kt +++ b/libs/commons-database/src/main/kotlin/gov/cdc/ocio/database/dynamo/DynamoRepository.kt @@ -83,7 +83,6 @@ class DynamoRepository(tablePrefix: String): ProcessingStatusRepository() { private fun getDynamoDbClient() : DynamoDbClient { // Load credentials from the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN environment variables. return DynamoDbClient.builder() - .credentialsProvider(EnvironmentVariableCredentialsProvider.create()) .build() } diff --git a/libs/commons-database/src/main/kotlin/gov/cdc/ocio/database/health/HealthCheckDynamoDb.kt b/libs/commons-database/src/main/kotlin/gov/cdc/ocio/database/health/HealthCheckDynamoDb.kt index 3a79f9be..4d1e7daa 100644 --- a/libs/commons-database/src/main/kotlin/gov/cdc/ocio/database/health/HealthCheckDynamoDb.kt +++ b/libs/commons-database/src/main/kotlin/gov/cdc/ocio/database/health/HealthCheckDynamoDb.kt @@ -32,7 +32,6 @@ class HealthCheckDynamoDb: HealthCheckSystem("Dynamo DB") { private fun getDynamoDbClient() : DynamoDbClient { // Load credentials from the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN environment variables. return DynamoDbClient.builder() - .credentialsProvider(EnvironmentVariableCredentialsProvider.create()) .build() } } \ No newline at end of file