Hey I have mongo db Atlas and EC2 server deployed via beanstalk. I would like to have better security with whitelisting only specific IP's that can connect to mongo. Problem is when I log into AWS console, and take IPv4 Public IP from my EC2 insance and whitelist that ip in mongo settings , then connection gets refused, when I whitelist all range of ip's then it is working, so It tells me that the IP is somehow wrong. What I am missing here folks ???
↧