Skip to content

Commit

Permalink
Take out mobile for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseydew committed Apr 9, 2024
1 parent c620b29 commit 8fed935
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ import software.amazon.awssdk.services.dynamodb.DynamoDbClient
class SflDynamoDb(persistanceConfig: PersistenceConfig) extends Logging {

private val table = Table[DynamoSavedArticles](persistanceConfig.tableName)
DynamoDbClient.create()
private val client = DynamoDbClient
.builder()
.credentialsProvider(
AwsCredentialsProviderChain.of(InstanceProfileCredentialsProvider.create(),
ProfileCredentialsProvider.builder().profileName("mobile").build())
AwsCredentialsProviderChain.of(
InstanceProfileCredentialsProvider.create()
)
).region(Region.EU_WEST_1)
.build()
private val scanamo = Scanamo(client)
Expand Down

0 comments on commit 8fed935

Please sign in to comment.