MUPX (MUP) Deploy to Amazon EC2 with local MongoDB

I have successfully deployed to EC2 (ubuntu) using MUPX. Now I am trying to migrate my local mongo database to the EC2 server and am at a loss as how to do this. I’ve done a mongodump on the local db and have the dump folder ready. From reading the mongo tutorial it seems that migrating data should be as easy as performing a mongorestore with the host, port, user, password, and local dump location. So my question is: how do I find this information (host, port, user, password) for mongo running on EC2, and where do I run the command? I can guess user is ‘ubuntu’ and port is 27017, but I am ssh’ing into the instance w/ an AWS provided key so not so sure about password and other details.

Thanks.

1 Like