Skip to content

Latest commit

 

History

History
58 lines (49 loc) · 1.76 KB

README.md

File metadata and controls

58 lines (49 loc) · 1.76 KB


Secrets Manager

springboot-aws-secretmanager 🧩⚙️ is a component
for loading ➕AWS SecretsManager parameters
in the ➕Spring Boot application

MIT license Maven Central

Installation 👨‍💻👩‍💻

Include in your pom.xml

<dependency>
    <groupId>io.github.sdacode</groupId>
    <artifactId>springboot-aws-secretsmanager</artifactId>
    <version>1.0.3</version>
</dependency>

Using the lib

Use a property that is prefixed with AwsSecretsManager::<yourkey>

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=<region-string>

Contributing 🤝🤙

Open an issue to report bugs or to request additional features. Pull requests are always welcome.