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.