I am integrating the spring-cloud-aws-secrets-manager-config
module with my SpringBoot application to fetch secrets from AWS Secrets Manager.
I have following two secrets in AWS Secrets Manager.
- /myapp/dbcredentials
- /myapp/apikey
Now, with bootstrap.yml
, I am able to fetch either of these two secrets. Not both.
bootstrap.yml
aws:
secretsmanager:
prefix: /myapp
defaultContext: application
profileSeparator: _
failFast: false
name: dbcredentials
enabled: true
What will be the configuration in bootstrap.yml
to fetch both the secrets?