I have a Java application that is running on an ECS cluster and is already using an RDS Postgre instance. Sometimes I need to scale RDS horizontally (add read replicas), so I created a lambda that adds/removes a load dependent read replica.
How can I add a read replica endpoint to my application (there will be more than 2 endpoints here (main instance and read replicas))?
I just search for the answer, not really sure how to do this