Skip to content

🧩⚙️ Component for loading AWS SecretsManager parameters in the Spring Boot application

License

Notifications You must be signed in to change notification settings

sdacode/springboot-aws-secretsmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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.

Releases

No releases published

Packages

No packages published

Languages