From 32c9210b02911d7c2f321e604c3d5d0a9d071bf9 Mon Sep 17 00:00:00 2001 From: faustin0 Date: Sun, 1 Sep 2024 17:11:05 +0200 Subject: [PATCH] initialize side-effect-full env var loading at runtime (maledetti cani di AWS) --- build.sbt | 1 + project/Dependencies.scala | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 755ff2c0..f3a816bc 100644 --- a/build.sbt +++ b/build.sbt @@ -70,6 +70,7 @@ lazy val api = project "--initialize-at-run-time=org.http4s.multipart.Boundary$", // todo open PR on tapir? "--initialize-at-run-time=software.amazon.awssdk.core.retry.backoff.FullJitterBackoffStrategy", "--initialize-at-run-time=software.amazon.awssdk.services.dynamodb.DynamoDbRetryPolicy", + "--initialize-at-run-time=com.amazonaws.services.lambda.runtime.api.client.LambdaEnvironment", //CANI di AWS "--enable-http", "--enable-https", "--enable-all-security-services", diff --git a/project/Dependencies.scala b/project/Dependencies.scala index e520bee8..3596a66f 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -68,7 +68,7 @@ object Dependencies { "com.softwaremill.sttp.tapir" %% "tapir-json-circe" % tapirVersion ) - lazy val lambdaRuntimeDeps = "com.amazonaws" % "aws-lambda-java-runtime-interface-client" % "2.4.2" + lazy val lambdaRuntimeDeps = "com.amazonaws" % "aws-lambda-java-runtime-interface-client" % "2.6.0" lazy val awsLambdaDeps = Seq( "com.amazonaws" % "aws-lambda-java-core" % "1.2.3",