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
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
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>
#spring:
- Luan Vu - luanvuhlu