Skip to content

siosio/spring-cloud-aws-secrets-manager

Repository files navigation

spring-cloud-aws-secrets-manager

property values can be injected directly into your beans from aws secrets manager.

How to use

gradle

repositories {
  jcenter()
}

dependencies {
  compile 'com.github.siosio:spring-cloud-aws-secrets-manager:2.0.0'
}

disabling

please add the following to resources/bootstrap.properties.

aws.secretsmanager.enabled=false

example

secret name: secret-name

secret key secret value
key1 value1
key2 value2
key3 value3
@Component
public class Bean {
    
    @Value("secret-name.key1")
    private String key1;        // injected: value1
    
    @Value("secret-name.key2")
    private String key2;        // injected: value2
    
    @Value("secret-name.key3")
    private String key3;        // injected: value3
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages