Skip to content

Commit

Permalink
Use the default creds provider for dynamo repo and health check clien…
Browse files Browse the repository at this point in the history
…ts (#246)

Co-authored-by: Matt B Krystof <[email protected]>
  • Loading branch information
mkrystof and Matt B Krystof authored Nov 5, 2024
1 parent 2121505 commit 70b5ba1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

0 comments on commit 70b5ba1

Please sign in to comment.