https://github.com/sdacode/springboot-aws-secretsmanager
π§©βοΈ Component for loading AWS SecretsManager parameters in the Spring Boot application
https://github.com/sdacode/springboot-aws-secretsmanager
aws aws-sdk aws-sdk-java aws-secrets-manager aws-secretsmanager java java-11 maven maven-pom spring-boot springboot
Last synced: 2 months ago
JSON representation
π§©βοΈ Component for loading AWS SecretsManager parameters in the Spring Boot application
- Host: GitHub
- URL: https://github.com/sdacode/springboot-aws-secretsmanager
- Owner: sdacode
- License: mit
- Created: 2021-03-22T19:01:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-28T20:58:45.000Z (over 1 year ago)
- Last Synced: 2025-02-03T22:40:53.824Z (4 months ago)
- Topics: aws, aws-sdk, aws-sdk-java, aws-secrets-manager, aws-secretsmanager, java, java-11, maven, maven-pom, spring-boot, springboot
- Language: Java
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
![]()
Secrets Manager
springboot-aws-secretmanager π§©βοΈ is a component
for loading βAWS SecretsManager parameters
in the βSpring Boot application[](https://github.com/sdacode/springboot-aws-secretsmanager/blob/main/LICENSE)
[](https://maven-badges.herokuapp.com/maven-central/io.github.sdacode/springboot-aws-secretsmanager)## Installation π¨βπ»π©βπ»
### Include in your pom.xml
```io.github.sdacode
springboot-aws-secretsmanager
1.0.3```
### Using the lib
Use a property that is prefixed with `AwsSecretsManager::`Example: **Class(@Component or @Service)**
```
@Value("${AwsSecretsManager::/example/secrets/parameter}")
String value;
```Example: **application.properties**
```
example.secrets.parameter=${AwsSecretsManager::/example/secrets/parameter}
```## Properties configuration π§π
By default:
```
aws.secretsmanager.enable=true
aws.secretsmanager.region=us-east-1
```
When including the library in your pom.xml, it is enabled by default, to disable it, use the following property:
```
aws.secretsmanager.enable=false
```
To change the region:
```
aws.secretsmanager.region=
```## Contributing π€π€
Open an issue to report bugs or to request additional features. Pull requests are always welcome.