Skip to content

Commit

Permalink
Fixes #107 - Modified the client defination
Browse files Browse the repository at this point in the history
  • Loading branch information
TebaleloS committed Nov 30, 2023
1 parent f98b794 commit 36b71e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ object Dependencies {
val json4s_spark3 = "3.7.0-M11"

val logback = "1.2.3"
val awssdk = "2.17.96"
val awssdk = "2.20.68"
val _sso = "2.20.107"
}

private def limitVersion(version: String, parts: Int): String = {
Expand Down Expand Up @@ -139,7 +140,8 @@ object Dependencies {
lazy val slickPg = "com.github.tminglei" %% "slick-pg" % Versions.slickpg

// awssdk library for providing the functionality of retrieving the secret key
lazy val awsSdk = "software.amazon.awssdk" % "secretsmanager" % "2.20.68"
lazy val awsSdk = "software.amazon.awssdk" % "secretsmanager" % Versions.awssdk
lazy val sso = "software.amazon.awssdk" % "sso" % Versions._sso

Seq(
springBootTest % Test,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package za.co.absa.atum.server.api

import software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider
import software.amazon.awssdk.regions.Region
import software.amazon.awssdk.services.secretsmanager.SecretsManagerClient
import software.amazon.awssdk.services.secretsmanager.model.{GetSecretValueRequest, SecretsManagerException}
Expand All @@ -26,6 +27,7 @@ import software.amazon.awssdk.services.secretsmanager.model.{GetSecretValueReque
class RetrieveAwsSecret {
private val secretsManagerClient: SecretsManagerClient = SecretsManagerClient.builder()
.region(Region.AF_SOUTH_1)
.credentialsProvider(ProfileCredentialsProvider.create("npintdebdtools-sso"))
.build()

/**
Expand Down

0 comments on commit 36b71e4

Please sign in to comment.