This is the first time using aws and linux.
I have setup a webserver with export MONGO_URL=mongodb://localhost:27017/app and its works but when I separate my mongodb into another aws instance and changed the localhost to my mongodb instance private ip address its doesnt works anymore.
I use telnet private-ip-add 27017 from webserver and it shows Connection refused
I have also set security group inbound on mongodb instance
Custom TCP Rule TCP 27017 webserver-private-ip-add/31
Can anyone help me? Thanks!