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.
|Use this link to provision networking resources in the secondary AWS region for Amazon DocumentDB Global Clusters|
Before proceeding switch your region to us-east-1 if you are running this lab as part of a formal workshop using Event Engine
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.
In the Cloud9 IDE, use Cloud9’s Window menu and select New Terminal.
Then, in the new terminal, paste and run the below commands to install Mongo Shell client and some other utilities:
wget https://s3.amazonaws.com/ee-assets-prod-us-east-1/modules/c55fc8f9e8cf4231b0c09a7a493fdf78/v1/nested/init.sh chmod 600 init.sh sh init.sh source ~/.bashrc