MongoDB on AWS
MongoDB Quick Start

Step 1. Prepare an AWS Account

  1. If you don't already have an AWS account, create one at by following the on-screen instructions. Part of the sign-up process involves receiving a phone call and entering a PIN using the phone keypad.

  2. Use the region selector in the navigation bar to choose the AWS Region where you want to deploy the MongoDB cluster on AWS. For more information, see Regions and Availability Zones. Regions are dispersed and located in separate geographic areas. Each Region includes at least two Availability Zones that are isolated from one another but connected through low-latency links.

                        Choosing an Amazon EC2 region

    Figure 3: Choosing an AWS Region


    Consider choosing a region closest to your data center or corporate network to reduce network latency between systems running on AWS and the systems and users on your corporate network.

  3. Create a key pair in your preferred region. To do this, in the navigation pane of the Amazon EC2 console, choose Key Pairs, Create Key Pair, type a name, and then choose Create.

                        Creating a Key Pair

    Figure 4: Creating a key pair

    Amazon EC2 uses public-key cryptography to encrypt and decrypt login information. To be able to log into your instances, you must create a key pair. On Linux, we use the key pair to authenticate SSH login.

  4. If necessary, request a service limit increase for the Amazon EC2 instance types that you intend to deploy. To do this, in the AWS Support Center, choose Create Case, Service Limit Increase, EC2 instances, and then complete the fields in the limit increase form.

    The default limit for the number of instances depends on the instance type you choose and currently ranges from 2 to 20 (see the Amazon EC2 FAQ page). If you have existing deployments that also use this instance type, or if you plan to exceed the default with this reference deployment, you will need to request a limit increase. It might take a few days for the new service limit to become effective. For more information, see Amazon EC2 Service Limits in the AWS documentation.

                        Requesting a Service Limit Increase

    Figure 5: Requesting a service limit increase

  5. If necessary, request a limit increase for the Elastic IP addresses in the VPC. Choose VPC for the limit type, and complete the fields on the limit request form.

  6. If necessary, request a limit increase for the EBS volumes that you can use. Choose EBS for the limit type, and complete the fields on the limit request form.