1

Hi,

I have the problem with configuration of the spring boot parameter store for spring-boot 3.0 application.

I have added the following dependencies

        <dependency>
            <groupId>io.awspring.cloud</groupId>
            <artifactId>spring-cloud-aws-starter</artifactId>
            <version>3.0.0-M3</version>
        </dependency>
        <dependency>
            <groupId>io.awspring.cloud</groupId>
            <artifactId>spring-cloud-aws-starter-parameter-store</artifactId>
            <version>3.0.0-M3</version>
        </dependency>
        <dependency>
            <groupId>io.awspring.cloud</groupId>
            <artifactId>spring-cloud-aws-starter</artifactId>
            <version>3.0.0-M3</version>
        </dependency>
        <dependency>
            <groupId>io.awspring.cloud</groupId>
            <artifactId>spring-cloud-aws-autoconfigure</artifactId>
            <version>3.0.0-M3</version>
        </dependency>

And my application.properties:

spring.config.import=aws-parameterstore:/config/app

spring.cloud.aws.parameterstore.region=eu-west-1

However still i am experiencing an error:

Description:

Config data resource '[ParameterStoreConfigDataResource@198c7a4b context = '/config/app', optional = false]' via location 'aws-parameterstore:/config/app' does not exist

Action:

Check that the value 'aws-parameterstore:/config/app' is correct, or prefix it with 'optional:'

Do I miss any of the dependencies or additional configuration?

2
  • 2
    is this solved yet? Commented May 9, 2023 at 11:32
  • I faced the same issue, double check SDK versions to see whether are compatible for the attached dependencies. For parameter store You need to have spring.cloud.aws.credentials.access-key and spring.cloud.aws.credentials.secret-key not only aws.credentials.access-key and aws.credentials.access-secret. Moreover, consider that with :optional prefix for spring.config.import app will start and in logs, You will have more details about the root cause. Commented Feb 10 at 9:19

1 Answer 1

0

I had the same problem and got it working by adding the following dependency:

implementation("org.springframework.cloud:spring-cloud-starter-bootstrap:4.0.1")
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.