Global Cluster Module Prerequisites

For this portion of the lab, you need to create the VPC, networking and Amazon Cloud9 resources in a 2nd AWS region. If you are running these labs as part of a formal workshop using Event Engine, we will use us-east-1 (N. Virginia) region for the setup, due to some security policy restrictions in place for the other regions. If you are running this lab in your own AWS account, you can choose any region where Amazon DocumentDB Global cluster is supported.

Link Description
Launch CloudFormation Template Use this link to provision networking resources in the secondary AWS region for Amazon DocumentDB Global Clusters

CloudFormation Stack Setup Instructions

  1. Click the Launch Stack button above.
  2. Ensure the correct AWS region is selected in the top right corner.

    Before proceeding switch your region to us-east-1 if you are running this lab as part of a formal workshop using Event Engine

  3. Make sure CreateCluster parameter is set to false to disable DocumentDB cluster creation and migrationResources parameter is set to “false”. Leave rest of the parameters at their default value. Select both checkboxes at the bottom and press “Create Stack”.

AWS Cloud Formation Template 1

Note that we are not creating another Amazon DocumentDB cluster but just the networking resources and Cloud9 to support the secondary region for our DocumentDB database.

It should take 10 minutes for all the stack creation to be complete. Once complete, click on the stack name “docdb-stack” as shown in the picture below. Click on the Outputs tab on the right and click on the Cloud9URL https address in “Value” column. AWS Cloud Formation Template 2

In the Cloud9 IDE, use Cloud9’s Window menu and select New Terminal.

AWS Cloud Formation Template 3

Then, in the new terminal, paste and run the below commands to install Mongo Shell client and some other utilities:

chmod 600
source ~/.bashrc