Skip to content

Commit

Permalink
Merge pull request #926 from guardian/update/aws
Browse files Browse the repository at this point in the history
chore(deps): AWS dependency updates
  • Loading branch information
akash1810 authored Aug 2, 2024
2 parents 5c3af8f + e060263 commit ddc70d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions app/conf/AWS.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package conf

import java.net.InetAddress

import software.amazon.awssdk.core.client.config.ClientOverrideConfiguration
import software.amazon.awssdk.core.retry.RetryPolicy
import software.amazon.awssdk.core.retry.RetryMode
import software.amazon.awssdk.regions.Region
import software.amazon.awssdk.regions.internal.util.EC2MetadataUtils
import software.amazon.awssdk.services.ec2.Ec2Client
Expand All @@ -13,20 +12,14 @@ import software.amazon.awssdk.services.ec2.model.{
Filter
}
import utils.Logging

import scala.collection.MapView
import scala.jdk.CollectionConverters._
import scala.util.Try

object AWS extends Logging {
val clientConfig: ClientOverrideConfiguration = ClientOverrideConfiguration
.builder()
.retryPolicy(
RetryPolicy
.builder()
.numRetries(10)
.build()
)
.retryStrategy(RetryMode.ADAPTIVE_V2)
.build()

// This is to detect if we are running in AWS or on GC2. The 169.254.169.254
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version := "1.0-SNAPSHOT"

ThisBuild / scalaVersion := "2.13.14"

val awsVersion = "2.25.70"
val awsVersion = "2.26.27"
val awsVersionOne = "1.12.764"

def env(propName: String): String =
Expand Down

0 comments on commit ddc70d2

Please sign in to comment.