From 95b87adbb8e1e568a2abe53da0e3b9159f9f55c5 Mon Sep 17 00:00:00 2001 From: Matt Mathias Date: Fri, 17 Sep 2021 10:40:52 +0200 Subject: [PATCH] Add possibility to use STS to authenticate (close #318) --- build.sbt | 6 ++++-- project/Dependencies.scala | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index b6725b226..8f0a5c1a2 100644 --- a/build.sbt +++ b/build.sbt @@ -84,7 +84,7 @@ lazy val allStreamSettings = BuildSettings.basicSettings ++ BuildSettings.sbtAss Dependencies.Libraries.scopt, Dependencies.Libraries.pureconfig, Dependencies.Libraries.snowplowTracker, - Dependencies.Libraries.jacksonCbor + Dependencies.Libraries.jacksonCbor, Dependencies.Libraries.specs2, Dependencies.Libraries.scalacheck )) @@ -111,7 +111,8 @@ lazy val streamKinesis = project .settings(libraryDependencies ++= Seq( Dependencies.Libraries.kinesisClient, Dependencies.Libraries.kinesisSdk, - Dependencies.Libraries.dynamodbSdk + Dependencies.Libraries.dynamodbSdk, + Dependencies.Libraries.sts )) .enablePlugins(JavaAppPackaging, DockerPlugin) .dependsOn(streamCommon) @@ -302,6 +303,7 @@ lazy val kinesis = project Dependencies.Libraries.dynamodbSdk, Dependencies.Libraries.fs2BlobS3, Dependencies.Libraries.fs2Aws, + Dependencies.Libraries.sts ), addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1") ) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 4c6d33063..10d13a02b 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -161,6 +161,7 @@ object Dependencies { val dynamodbSdk = "com.amazonaws" % "aws-java-sdk-dynamodb" % V.awsSdk val s3Sdk = "com.amazonaws" % "aws-java-sdk-s3" % V.awsSdk val kinesisClient = "com.amazonaws" % "amazon-kinesis-client" % V.kinesisClient + val sts = "com.amazonaws" % "aws-java-sdk-sts" % V.awsSdk % Runtime val gcs = "com.google.cloud" % "google-cloud-storage" % V.gcpSdk val kafkaClients = "org.apache.kafka" % "kafka-clients" % V.kafka val jacksonCbor = "com.fasterxml.jackson.dataformat" % "jackson-dataformat-cbor" % V.jackson