Skip to content

Instantly share code, notes, and snippets.

@purukaushik
Last active August 27, 2016 16:27
Show Gist options
  • Save purukaushik/64011ce36f83b85bf8ada840a06cb2d0 to your computer and use it in GitHub Desktop.
Save purukaushik/64011ce36f83b85bf8ada840a06cb2d0 to your computer and use it in GitHub Desktop.
AMI EC2 MongoDB installation and setup

Setting up EC2 AMI for MongoDB

  1. Launch an Amazon Linux Instance on ec2 - choose 30 GB of EBS storage- free-tier eligible
  2. ssh into the AMI box
  3. Use this to install mongodb - https://docs.mongodb.com/manual/tutorial/install-mongodb-on-amazon/
  4. Use this to create admin user - https://docs.mongodb.com/manual/tutorial/enable-authentication/
  5. Setup a read only user for running fetch queries
  6. https://docs.mongodb.com/manual/reference/configuration-options/#security.authorization for restarting mongod service with auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment