To disable MongoDB, you will need to log in as the root user (ubuntu on EC2) and run the following on the command line:
sudo mongo-enabled false
This will stop the MongoDB service from running. The server will automatically reboot after issuing this command.
In the future, if you decide you need MongoDB, log in as the root user (ubuntu on EC2), and run:
sudo mongo-enabled true