Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29543

Connect to mongo db from ec2 instance with ip whitelist

$
0
0

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 ???


Viewing all articles
Browse latest Browse all 29543

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>