RDS Database Authentication with Spring Boot: Part 1, Secrets Manager

spring.datasource.url=jdbc:postgresql://db.example.com:5432/postgres
spring.datasource.username=postgres
spring.datasource.password=my_super_secret_password
spring.datasource.url=jdbc:postgresql://${PGHOST}:${PGPORT}/${PGDATABASE}
spring.datasource.username=${PGUSER}
spring.datasource.password=${PGPASSWORD}
spring.datasource.url=jdbc-secretsmanager:postgresql://${PGHOST}:${PGPORT}/${PGDATABASE}
spring.datasource.driver-class-name=com.amazonaws.secretsmanager.sql.AWSSecretsManagerPostgreSQLDriver
spring.datasource.username=${SECRET_NAME}

Chariot Solutions is a top IT consulting firm specializing in software and mobile development, and development in the cloud. Visit us at chariotsolutions.com.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Key Notes to Understand Hyperledger Fabric effectively — Part 2

GraphQL API vs REST API

Ubuntu - Replacement (Error 404 {…Not Found…})

A simple introduction to OAuth 2.0

Everything About Deploying A Node.js Application on AWS

Developers Developing Development

The Chronicles of Nowhere Man in Systems Land

Distributed Tracing

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Chariot Solutions

Chariot Solutions

Chariot Solutions is a top IT consulting firm specializing in software and mobile development, and development in the cloud. Visit us at chariotsolutions.com.

More from Medium

Solving AWS Athena + JDBC Simba Driver Connection Issue

AWS Well-Architected Framework — AWS Roadmap

AWS — aws Glue

Scaling your applications with Auto Scaling on AWS