1

I am trying to integrate AWS secret manager in my spring-boot application. I have created other type of secret(key/value) on AWS. basically, these are my DB username & password.

    <dependency>
        <groupId>io.awspring.cloud</groupId>
        <artifactId>spring-cloud-starter-aws-secrets-manager-config</artifactId>
        <version>2.4.2</version>
      </dependency> 

Implementation:

    spring.datasource.username=${username}
    spring.datasource.password=${password}
    spring.config.import:aws-secretsmanager:/secret/db

Error: : Couldn't find secrets with given name.

I tried most of the answers on stack including This Link. Its not working & i am getting error as- couldn't find secrets with given name.

  • Exception: io.awspring.cloud.secretsmanager.AwsSecretsManagerPropertySources$AwsSecretsManagerPropertySourceNotFoundException: com.amazonaws.services.secretsmanager.model.ResourceNotFoundException: Secrets Manager can't find the specified secret. (Service: AWSSecretsManager; Status Code: 400; Error Code: ResourceNotFoundException; Request ID: de67895f-4706-4181-8302-d8e70f7f7734; Proxy: null) –  Jan 23 '23 at 06:56

0 Answers0