Skip to content

Commit

Permalink
enrich-nsq: use default aws provider chain
Browse files Browse the repository at this point in the history
  • Loading branch information
istreeter committed Feb 8, 2024
1 parent b13099e commit 1ea4c60
Showing 1 changed file with 2 additions and 2 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 @@ -57,7 +57,7 @@ object S3Client {
}

private def getRegion(): Region =
Either.catchNonFatal(new AwsRegionProviderChain().getRegion) match {
Either.catchNonFatal(DefaultAwsRegionProviderChain.builder.build.getRegion) match {
case Right(region) =>
region
case _ =>
Expand Down

0 comments on commit 1ea4c60

Please sign in to comment.