spring-attic / spring-cloud-aws

All development has moved to https://github.com/awspring/spring-cloud-aws Integration for Amazon Web Services APIs with Spring
https://awspring.io/
Apache License 2.0
590 stars 373 forks source link

Add aws-secretsmanager: prefix config import #721

Closed eddumelendez closed 3 years ago

eddumelendez commented 3 years ago

In spring-boot 2.4, Volume Mounted Config Directory Trees was added. This commit introduces the prefix aws-secretsmanager: which will resolve the values given the configuration properties supported by secrets manager integration. Also, if keys are added after the prefix then just these will be resolved.

Use: aws-secretsmanager: or aws-secretsmanager:my-secret-key or aws-secretsmanager:my-secret-key;my-anoter-secret-key

Closes gh-655 Closes gh-515

maciejwalkowiak commented 3 years ago

failFast and optional did not work well for me. I fixed it and polished but I can't create a PR to your branch cause you pushed it into your fork, so please take a look at the commit: https://github.com/spring-cloud/spring-cloud-aws/commit/21011e629c1e176894c707368d9dc9c871743e02 and maybe cherry pick it