SSH into the EC2 Instance, then type mongo to open the mongo shell.
mongo
Connect to the given database by using use db-name where db-name is the name of the database.
use db-name
db-name
← Amazon Web Services Notes Ubuntu Setup 20.04 LTS →