Click to deploy
- Choose two instances and an arbiter instance. (Min required config for a replica set)
- SSH into the primary instance (determined by rs.status())
- Create a dbuser admin with root permissions
- Verify that the user is good
- Create a keyFile with openssl command.
- Paste the keyFile to both the instances.
- chmod 700 file and sudo chown mongodb:mongodb file
- stop both instances.
- Edit config file enable security authentication, give keyFile path to the one created