After SSH login, update installed packages, add the MongoDB yum repo, and install MongoDB:
echo"[mongodb-org-3.2]name=MongoDB Repositorybaseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.2/x86_64/gpgcheck=1enabled=1gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc"|sudo tee -a /etc/yum.repos.d/mongodb-org-3.2.repo
sudo yum -y update&&sudo yum install -y mongodb-org-server\mongodb-org-shell mongodb-org-tools