Closed unoexperto closed 3 years ago
@unoexperto - actually, this is the exception that you'll see if you don't include the CloudWatch Logs JAR in your deployment.
It could also happen if you use the V2 facade JAR from this library with a V1 AWS SDK.
@kdgregory I used V2 facade and 2.x version of AWS SDK. These are my dependencies
software.amazon.awssdk:aws-sdk-java:2.16.3
software.amazon.awssdk:logs:2.0.0-preview-11
From what I saw in the sources of the SDK logs:2.0.0-preview-11
is outdated and no longer used in it.
@unoexperto - if you're using 2.0.0-preview-11
for the logs JAR, that could be your problem. You should use the same version for all SDK JARs.
I can assure you that ResourceAlreadyExistsException
is still in the SDK. It's in the current JavaDoc, and I checked the current source.
Lastly, I took my example program, deleted the dependency on the CloudWatch Logs JAR, and saw exactly that error.
Looks like something was deprecated in AWS SDK. I'm using 2.16.3 and I get following exception on start