diff --git a/src/main/scala/fi/oph/koski/omaopintopolkuloki/AuditLogDynamoDB.scala b/src/main/scala/fi/oph/koski/omaopintopolkuloki/AuditLogDynamoDB.scala index 91eb5c7677..22107a8289 100644 --- a/src/main/scala/fi/oph/koski/omaopintopolkuloki/AuditLogDynamoDB.scala +++ b/src/main/scala/fi/oph/koski/omaopintopolkuloki/AuditLogDynamoDB.scala @@ -4,6 +4,7 @@ import com.typesafe.config.Config import fi.oph.koski.config.Environment import fi.oph.koski.log.Logging import software.amazon.awssdk.auth.credentials.{AwsBasicCredentials, StaticCredentialsProvider} +import software.amazon.awssdk.regions.Region import software.amazon.awssdk.services.dynamodb.DynamoDbClient object AuditLogDynamoDB extends Logging { @@ -18,6 +19,7 @@ object AuditLogDynamoDB extends Logging { } else { val client = DynamoDbClient.builder() .endpointOverride(new java.net.URI("http://localhost:8000")) + .region(Region.EU_WEST_1) .credentialsProvider(StaticCredentialsProvider.create(AwsBasicCredentials.create("mock", "mock"))) .build()