springboot-aws-secretmanager 🧩⚙️ is a component
for loading ➕AWS SecretsManager parameters
in the ➕Spring Boot application
<dependency>
<groupId>io.github.sdacode</groupId>
<artifactId>springboot-aws-secretsmanager</artifactId>
<version>1.0.3</version>
</dependency>
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}
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>
Open an issue to report bugs or to request additional features. Pull requests are always welcome.