DMS PreLab Setup 2


  1. Introduction
  2. Create the Student Environment


This guide helps students set up the pre-environment for the AWS Database Migration Service (AWS DMS) Main Lab. It is a compulsory step for the DMS Main Lab, but not required for the AutoComplate DMS Lab.

AWS DMS required source and destination as shown below:

Your instructor will provide you source database details during main lab to configure source endpoint. If you ran instructor lab to setup your own instance of Postgres database then use instance endpoint from instructor lab.

In this lab, you will complete the following pre-requisite using AWS CloudFormation template deployment:

  1. Create required VPC setup for AWS DMS instance.
  2. Create Amazon S3 bucket for destination end point configuration.
  3. Create Amazon S3 buckets for Amazon Athena query result storage.
  4. Create required Amazon S3 bucket policy to put data by AWS DMS service.
  5. Create AWS Glue Service Role to use in later hands-on workshop.
  6. Create Amazon Athena workgroup users to use in Athena workshop.
  7. Create Amazon Lake formation users to use in Lake formation workshop.

Labs are also available in GitHub -

Create the Student Environment

Make sure you select the us-east-1 (Virginia) region

  1. Sign in to the AWS console where you will host the student environment.

  2. Go to the IAM console, search the role dms-cloudwatch-logs-role in the search box. Note whether the role is present or not. In this example screenshot the role doesn’t exist.

  3. Navigate to the AWS CloudFormation page from the top-left corner menu Services.

  4. Click the Deploy to AWS icons below to stand up the environment setup.

Launch Template Region
N.Virginia (us-east-1)

or perform below step 5,6,7 manually

  1. On top right corner, click on “Create Stack” and select “With new resources”.

  1. In “Create Stack” Page, select “Template is ready” and for template source, select “Upload a template file”.

  2. For this lab, you will be using DMSLab_Student_CFN.json template.

  3. Click Next.

  4. In Specify stack details, provide a name for “Stack Name” as “dmslab-student”. Choose yes, if you found the dms-cloudwatch-logs-role role at step 2. Otherwise, leave to no.

  5. Click on Next.

  6. In review page, review all the details, scroll down and check the box to acknowledge the policy and then click on Create Stack.

  7. Launch the stack. It may take 5 minutes for the stack to launch. Go to the Outputs tab and note down all resource information in a notepad as you are going to use them in future labs:

Congratulations!!! You have successfully completed the student prelab and setup all pre-requisite required to run the rest of the workshop. Please proceed to the next lab Data ingestion with DMS.