how loadbalancer works for RDS cluster?

  amazon-web-services, symfony, terraform

enter image description here

I want to build this RDS cluster using terraform but I have a question on how the load balancer will manage to understand and route request

  • Do the load balancer knows by itself how to redirect "SELECT" queries to the slave or i need to target slaves by myself in my application?

Source: Symfony Questions