amazon web services – Why am I getting 504 Gateway Time-out after updating aws-java-sdk version in Spring-Boot app on AWS?

I was able to solve it by adding only the dependency I need-

  <dependency>
     <groupId>com.amazonaws</groupId>
     <artifactId>aws-java-sdk-sts</artifactId>
     <version>1.12.472</version>
  </dependency>
  <dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>aws-java-sdk-rds</artifactId>
    <version>1.12.472</version>
  </dependency>
  <dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>aws-java-sdk-cognitoidp</artifactId>
    <version>1.12.472</version>
  </dependency>

The problem with aws-sdk-java is that it download the complete jars package which are the part of aws sdk ecosystem and the others jars may conflict with the EKS causing the issues. One more thing that all the aws-sdk jars version should be exact same, since internally they have dependency on other aws jars as well which also might create problems.

It was advisable to use the relevant jars that you needed, not the complete package.

Read more here: Source link