Cannot use AWS SDK in Spring Boot Application (Socket not created by this factory)

Question:

I am trying to create a basic Spring Boot application that interacts with AWS S3. I am only trying to get the list of buckets:

I start out with a basic Application:

My problem occurs in the Controller:

Here is my build.gradle:

The stack trace after requesting GET localhost:8080/:

I suspect the problem is how I am using Spring, because the same controller works in a simple Java application. Thus, I have verified my credentials are not the issue.

Answer:

This worked for me, I was using version 1.10.12 of the SDK Before I changed my dependency to version 1.11.136 of the aws-java-sdk and that resolved my issue

Leave a Reply