Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New versions are not supporting Spring Cloud AWS 3 SDK2 correctly #171

Open
tamaraita opened this issue Apr 29, 2024 · 1 comment
Open

Comments

@tamaraita
Copy link

tamaraita commented Apr 29, 2024

I'm using

<dependency> <groupId>org.zalando</groupId> <artifactId>spring-cloud-config-aws-kms</artifactId> <version>3.1</version> </dependency>

On my AWS 3, SDK2 app. But when I run my app I get

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kms' defined in class path resource [de/zalando/spring/cloud/config/aws/kms/KmsEncryptionConfiguration$KmsConfiguration.class]: Failed to instantiate [com.amazonaws.services.kms.AWSKMS]: Factory method 'kms' threw exception with message: com/amazonaws/ClientConfigurationFactory

And this is my dep tree
[INFO] +- org.zalando:spring-cloud-config-aws-kms:jar:5.1.2:compile
[INFO] | +- org.springframework:spring-context:jar:6.0.17:compile
[INFO] | +- org.springframework.cloud:spring-cloud-context:jar:4.0.5:compile
[INFO] | - com.amazonaws:aws-java-sdk-kms:jar:1.12.710:compile
[INFO] | - com.amazonaws:jmespath-java:jar:1.12.710:compile

@tamaraita tamaraita changed the title New versions are not supporting Spring Cloud AWS 3 New versions are not supporting Spring Cloud AWS 3 SDK2 correctly Apr 30, 2024
@danielrohe
Copy link
Member

danielrohe commented May 14, 2024

Thanks for raising. I think you are using wrong coordinates for the library. The coordinates for usage with Spring Boot 3 and Spring Cloud AWS 3.1.1 have changed.

The correct coordinates are (please also include the auto-configure for now as the starter is missing this dependency)

<dependency>
    <groupId>org.zalando.awspring.cloud</groupId>
    <artifactId>zalando-cloud-aws-autoconfigure</artifactId>
    <version>3.1.1</version>
</dependency>
<dependency>
    <groupId>org.zalando.awspring.cloud</groupId>
    <artifactId>zalando-cloud-aws-starter-kms</artifactId>
    <version>3.1.1</version>
</dependency>

In addition you may need the following dependencies for the automatic encryption

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants