Skip to content

Commit

Permalink
S3 region detection fix (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
oermolaev authored Dec 24, 2024
1 parent fdfc53d commit a36f1fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import blobstore.s3.S3Store

import software.amazon.awssdk.services.s3.S3AsyncClient
import software.amazon.awssdk.core.exception.SdkException
import software.amazon.awssdk.regions.providers.AwsRegionProviderChain
import software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain
import software.amazon.awssdk.regions.Region

import com.snowplowanalytics.snowplow.enrich.common.fs2.io.Clients.{Client, RetryableFailure}
Expand Down Expand Up @@ -58,7 +58,7 @@ object S3Client {
}

private def getRegion(): Region =
Either.catchNonFatal(new AwsRegionProviderChain().getRegion) match {
Either.catchNonFatal((new DefaultAwsRegionProviderChain).getRegion) match {
case Right(region) =>
region
case _ =>
Expand Down
1 change: 1 addition & 0 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ object BuildSettings {
case x if x.endsWith(".config") => MergeStrategy.first
case x if x.endsWith(".types") => MergeStrategy.first
case x if x.contains("netty") => MergeStrategy.first
case x if x.endsWith("NOTICE") => MergeStrategy.rename
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ object Dependencies {
val collectorPayload = "0.0.0"
val schemaSniffer = "0.0.0"

val awsSdk = "1.12.765"
val awsSdk = "1.12.780"
val gcpSdk = "2.31.0"
val awsSdk2 = "2.25.69"
val kinesisClient2 = "2.4.3"
Expand Down

0 comments on commit a36f1fa

Please sign in to comment.