Skip to content

Commit

Permalink
remove scanamo dependency from ddb integration (#1126)
Browse files Browse the repository at this point in the history
* remove scanamo dependency from ddb integration

* remove scanamo dependency from ddb integration

---------

Co-authored-by: dmytro.obodowsky <dmytro.obodowsky@disney.com>
  • Loading branch information
semenodm and dmytro.obodowsky authored Nov 21, 2023
1 parent c4147f6 commit 70daf7b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 147 deletions.
1 change: 0 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ lazy val `fs2-aws-dynamodb` = (project in file("fs2-aws-dynamodb"))
Dependencies.Fs2Core,
Dependencies.DynamoStreamAdapter,
Dependencies.newTypes,
Dependencies.ScanamoCirce("1.0.8"),
Dependencies.Testing
)
.settings(commonSettings)
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import com.amazonaws.services.dynamodbv2.{
AmazonDynamoDBStreams,
AmazonDynamoDBStreamsClientBuilder
}
import fs2.aws.dynamodb.{DynamoDB, parsers}
import io.circe.Json
import io.laserdisc.scanamo.circe.CirceDynamoFormat.*
import fs2.aws.dynamodb.DynamoDB
import org.typelevel.log4cats.slf4j.Slf4jLogger

object DynamoDBStreamer extends IOApp {
Expand All @@ -26,7 +24,6 @@ object DynamoDBStreamer extends IOApp {
"app-name",
"ddb-stream-arn"
)
.evalMap(cr => parsers.parseDynamoEvent[IO, Json](cr.record))
.evalTap(msg => logger.info(s"received $msg"))
.compile
.drain
Expand Down

0 comments on commit 70daf7b

Please sign in to comment.