Setup Lab Environment

To simplify the infrastructure setup experience, we have created foundational templates for AWS CloudFormation Use this link to launch the cloudformation template that deploys the configuration needed to run through the labs. You also need to create ssh keys if you are going through migration labs.

Create SSH KeyPair

This section is only required when you are going through Migrate to MongoDB lab. Skip to Launch Cloudformation Template if you don’t plan to work on migration module.

  1. Login to http://console.aws.amazon.com/ with your AWS Credentials
  2. Go to Services Dropdown on top-left and select EC2 under Compute as shown in the screenshot below. Create KeyPair
  3. Click on KeyPair link as shown in the screen below. Create KeyPair
  4. Click on Create key pair on top-right as shown below. Create KeyPair
  5. Enter docdb-mig-lab-keys as Name and leave pem select as default for file format. You can use an existing KeyPair if you already have one created with the same name. Create KeyPair

Launch CloudFormation Template

Link Description
Launch CloudFormation Template Click “Launch Stack” button to create required VPC, Subnets, Security Groups,Cloud9 Environment and DocumentDB Cluster.

In the screenshot below you canchoose from a number options depending upon what modules you want to cover.

Launch CloudFormation Template

Option Description
CreateCluster Select this option as true if you want to create DocumentDB Cluster. If you want to create cluster manually then select false
EnvType Leave this set to prod to identify that you are running this lab in your own account and not AWS provided Event Engine account
migrationResources If set to true then cloudformation template will deploy sample Mongo EC2 instance and DMS instance which is required for Migration module. Set this to false if you are not planning to work on migration lab.

Scroll to the bottom, check both boxes and click Create stack. Launch CloudFormation Template

The stack will take approximately 10-20 mins to provision, you can monitor the status on the Stack detail page. You can monitor the progress of the resource creation by refreshing the Events tab. The latest event in the list will indicate CREATE_COMPLETE for the stack resource.

When the status of the stack at the bottom is CREATE_COMPLETE, select it and click on the Outputs tab on the right. Please take a moment to save these values somewhere that you will have easy access to during the remainder of the labs.

Launch CloudFormation Template

After this you can move on to setting up AWS Cloud9 Environment as part of the final prerequisites.