Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable a Defaults mode on AWS clients #15

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import fs2.Stream
import fs2.aws.kinesis.{CommittableRecord, Kinesis, KinesisConsumerSettings}
import org.typelevel.log4cats.{Logger, SelfAwareStructuredLogger}
import org.typelevel.log4cats.slf4j.Slf4jLogger
import software.amazon.awssdk.awscore.defaultsmode.DefaultsMode
import software.amazon.awssdk.regions.Region
import software.amazon.awssdk.services.cloudwatch.CloudWatchAsyncClient
import software.amazon.awssdk.services.dynamodb.DynamoDbAsyncClient
Expand Down Expand Up @@ -208,6 +209,7 @@ object KinesisSource {
KinesisAsyncClient
.builder()
.region(region)
.defaultsMode(DefaultsMode.AUTO)
val customized = customEndpoint.map(builder.endpointOverride).getOrElse(builder)
customized.build
}
Expand All @@ -220,6 +222,7 @@ object KinesisSource {
DynamoDbAsyncClient
.builder()
.region(region)
.defaultsMode(DefaultsMode.AUTO)
val customized = customEndpoint.map(builder.endpointOverride).getOrElse(builder)
customized.build
}
Expand All @@ -232,6 +235,7 @@ object KinesisSource {
CloudWatchAsyncClient
.builder()
.region(region)
.defaultsMode(DefaultsMode.AUTO)
val customized = customEndpoint.map(builder.endpointOverride).getOrElse(builder)
customized.build
}
Expand Down

This file was deleted.

3 changes: 0 additions & 3 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ object Dependencies {
// Scala
val cats = "2.9.0"
val catsEffect = "3.5.0"
val catsRetry = "3.1.0"
val fs2 = "3.7.0"
val log4cats = "2.6.0"
val http4s = "0.23.15"
Expand Down Expand Up @@ -56,7 +55,6 @@ object Dependencies {
val cats = "org.typelevel" %% "cats-core" % V.cats
val fs2 = "co.fs2" %% "fs2-core" % V.fs2
val log4cats = "org.typelevel" %% "log4cats-slf4j" % V.log4cats
val catsRetry = "com.github.cb372" %% "cats-retry" % V.catsRetry
val emberServer = "org.http4s" %% "http4s-ember-server" % V.http4s
val decline = "com.monovore" %% "decline-effect" % V.decline
val circeConfig = "io.circe" %% "circe-config" % V.circeConfig
Expand Down Expand Up @@ -110,7 +108,6 @@ object Dependencies {
val streamsDependencies = Seq(
cats,
catsEffectKernel,
catsRetry,
fs2,
log4cats,
specs2,
Expand Down
Loading