steve-todorov / spring-boot-aws-secrets-manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started

Create a secret:

aws secretsmanager create-secret \ 
--name /secrets/database-secrets \ 
--secret-string "{\n    \"spring.datasource.url\": \"jdbc:h2:file:./h2.db\",\n    \"spring.datasource.username\": \"root\",\n    \"spring.datasource.password\": \"password\"\n}"

Have the following environment variables

AWS_ACCESS_KEY_ID=XYZ
AWS_REGION=XYZ
AWS_SECRET_ACCESS_KEY=XYZ

Or if you have aws cli it should just pickup the profile.

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Additional Links

These additional references should also help you:

About


Languages

Language:Java 57.5%Language:Kotlin 42.5%