Skip to content

Required value of type interface software.amazon.awssdk.identity.spi.IdentityProvider - IllegalArgumentException building a SqsClient #4609

Answered by debora-ito
i-love-tea asked this question in Q&A
Discussion options

You must be logged in to vote

@i-love-tea make sure all the Java SDK 2.x modules are using the exact same version. This is likely caused by a version mismatch between the auth and the service modules.

You can check your dependency versions by running mvn dependency:tree.

Update: just to complement my answer, to avoid this kind of errors we recommend to use the BOM artifact. This way you declare the SDK version in one place only, and all the SDK modules under the same groupID will use that specific version.

Maven example:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>software.amazon.awssdk</groupId>
            <artifactId>bom</artifactId>
            <version>2.21.14</version>
   …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@i-love-tea
Comment options

@pedja4
Comment options

Answer selected by debora-ito
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants