Creating mongo 3 node replica set on ec2 problems
This is probably a firewall issue. The long pause is the socket connection hanging while it waits for it to timeout.

By default on EC2 the security groups (eg. firewall rules) for instances deny all inbound traffic. You have to explicitly specify what IP ranges or security group members are allowed to connect.

Using security groups instead of IPs is generally more maintainable. It allows you to add/remove additional servers later without worrying about updating the IP addresses that get dynamically assigned. You just need to include them in the same security group.

To get setup:


Create a security group specifically for your MongoDB instances. Let's call it "My MongoDB SG" and assume that AWS gives it the unique id sg-123456.
Edit the inbound firewall rules for the security group to allow traffic from the same security group on port. The entry should look like:

 Source         Port
 sg-123456      27017

Add the security group to each of your MongoDB instances


Then you can retry starting up the cluster.