MongoDB replica set not connected in EC2 instance

Connection URI to your replicaSet mongoDB must look something like that:

mongodb://mongodb0.example.com:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?replicaSet=myRepl

If you connect individually to every member via 3th party loadbalancer it will not work as expected ...