This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
Enhancement: make Spring Boot configuration for AWS RDS instance more flexible #495
Labels
Milestone
In our case, we have separate RDS instances used for different purposes (f.e. separate deployments for development, performance tests etc) and we need a clean way to use different RDS instance names depending on deployment.
Currently, RDS instance can be configured in Spring Boot via
The first approach doesn't allow much flexibility as with current implementation it seems to boil down to hard-coding RDS instance name, credentials etc. I believe this is already addressed in #383 with regard to providing credentials via annotation attributes.
The second one allows to resolve f.e. credentials from environment variables, but since instance name is a part of configuration path, rather than actual property value it cannot be externalized as f.e. environment variable.
The last one seems to allow to resolve RDS instance name from variables yet I believe it shouldn't be necessary to fall back to XML in a Spring Boot project just to be able to make such a basic configuration property more flexible.
Currently, the only ways that I see to accomplish our goal are:
But none of those seem satisfactory.
What would likely solve our problems would be any of these:
The text was updated successfully, but these errors were encountered: