Skip to content

Commit

Permalink
Fixes #107 - Added some properties
Browse files Browse the repository at this point in the history
  • Loading branch information
TebaleloS committed Dec 5, 2023
1 parent 36b71e4 commit 07340fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ postgres.properties.databaseName=atum_db
postgres.properties.user=atum_user
postgres.properties.password=changeme
postgres.numThreads=10

aws.property.user=atum_user
aws.property.profileCredentials=npintdebdtools-sso
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import software.amazon.awssdk.services.secretsmanager.model.{GetSecretValueReque
/**
* Class implement the functionality of retrieving secret keys from aws secret manger service
*/
class RetrieveAwsSecret {
class RetrieveAwsSecret (profileCredentials: String = "npintdebdtools-sso") {
private val secretsManagerClient: SecretsManagerClient = SecretsManagerClient.builder()
.region(Region.AF_SOUTH_1)
.credentialsProvider(ProfileCredentialsProvider.create("npintdebdtools-sso"))
.credentialsProvider(ProfileCredentialsProvider.create(profileCredentials))
.build()

/**
Expand Down

0 comments on commit 07340fe

Please sign in to comment.