Skip to content

Commit

Permalink
dynamodb build(endpoint) defines its own http client
Browse files Browse the repository at this point in the history
  • Loading branch information
EdWrld committed Feb 23, 2023
1 parent dfe33f4 commit 9cb15d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/jvmMain/kotlin/bbs/priorityqueue/sdk/Dynamodb.kt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class Dynamodb(builder: Builder) : Database {
// initializes instance at endpoint.
dynamoDB = DynamoDbClient.builder()
//.credentialsProvider(credentialProvider)
.httpClient(software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient.builder().build())
.region(awsRegion)
.endpointOverride(endpoint)
.build()
Expand Down
2 changes: 2 additions & 0 deletions src/jvmTest/kotlin/bbs/priorityqueue/DynamoDBTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import org.joda.time.LocalDate
import software.amazon.awssdk.regions.Region
import java.net.URI

// TODO test if things are triggered correctly regardless of different time zone definitions

class DynamoDBTests : AnnotationSpec() {

private val endpoint = URI.create("http://localhost:4566/")
Expand Down

0 comments on commit 9cb15d8

Please sign in to comment.