Skip to content

A sample project for using AWS RDS, Secrets and AWS Secrets Manager JDBC Library

Notifications You must be signed in to change notification settings

luanvuhlu/rds-secrets-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot project using AWS RDS and Secrets Manager

This is a sample project to demonstrate how to apply Amazon RDS, AWS Secrets Manager and AWS Secrets Manager JDBC Library to a Spring Boot project

Read more at blog post Tích hợp Amazon RDS datasource vào Spring project dùng AWS Secrets Manager

Pre-requisites

A RDS instance up and running. A secret (AWS Secrets Manager) which stores the RDS instance's credentials.
You can create both of them from Cloud Formation template, refer file cf.yaml

Make sure your AWS environment is correct so your application is able to retrieve the secret from AWS Secrets Manager

Configuration

Change in application.yml rds-endpoint and secret-name (RDSSecretsDemo if use my CloudFormation template)

spring:
  datasource:
    url: jdbc-secretsmanager:mysql://<rds-endpoint>:3306/aws
    username: <secret-name>

Authors

About

A sample project for using AWS RDS, Secrets and AWS Secrets Manager JDBC Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages