An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        






Secrets Manager



springboot-aws-secretmanager πŸ§©βš™οΈ is a component

for loading βž•AWS SecretsManager parameters

in the βž•Spring Boot application

[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/sdacode/springboot-aws-secretsmanager/blob/main/LICENSE)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.sdacode/springboot-aws-secretsmanager/badge.svg)](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.