create secure mongodb replica-set in amazon aws ec2 instances

Installation and configuration of MongoDB is relatively very easy. There are different ways you can run MongoDB, be it running single server, master-slave, replica-set or running in sharded/cluster way. By default, MongoDB installation doesn’t provide secure environment where clients should authenticate themselves before accesssing database. The articles describes steps to enable authentication for clients as well as make entire replica-set secure.