Skip to content

A tutorial for developers, DBAs and data engineers to get hands-on experience on how to migrate relational data to AWS purpose-built databases such as Amazon DynamoDB, Amazon Aurora using AWS DMS and build data processing applications on top of it.

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
MIT-0
LICENSE-SAMPLECODE
Unknown
LICENSE-SUMMARY
Notifications You must be signed in to change notification settings

christophavila/amazon-rds-purpose-built-workshop

 
 

Amazon RDS Purpose Built Workshop

A tutorial for developers, DBAs and data engineers to get hands-on experience on how to migrate relational data to AWS purpose-built databases such as Amazon DynamoDB, Amazon Aurora using AWS DMS and build data processing applications on top of it.

Overview: Working with AWS Purpose-Built databases

The days of one-size-fits-all, monolithic databases are behind us. Database design and management requires a different mindset in AWS when compared to traditional relational database management system (RDBMS) design. In this workshop, we will demonstrate on how to leverage both relational (Amazon Aurora) and non-relational databases (Amazon DynamoDB) that are purpose-built to handle the specific needs of an application. For illustrative purpose, we will leverage a relational schema used by the taxi application.

Pre-requisites

You need to have AWS account with IAM administrator privileges. We recommend to deploy the solution for Lab 1 using CloudFormation template while we go through the presentation. This is to save your time for walk-through. Please complete the following steps to deploy solution. The CloudFormation will take about 15 minutes to complete.

  1. Sign into the AWS Management Console us-west-2.

  2. In the upper-right corner of the AWS Management Console, confirm you are in the US West (Oregon) Region.

  3. Click on Launch Stack button below to launch CloudFormation template which will provision the AWS resources in your account. We will leverage the following AWS services as part of this workshop.

    • VPC with Public and Private subnets, NAT Gateway and Route tables
    • Oracle RDS instance launched from a snapshot preloaded with a sample taxi schema . This will be used as a source for our migration.
    • Amazon Aurora PostgreSQL as a target for relational data
    • Amazon DynamoDB as a target for NoSQL data
    • AWS DMS for migrating database from source to target
    • AWS Lambda for event driven data processing
    • AWS Cloud9 IDE for running scripts and deploying code
    • [IAM Roles for permissions required for AWS DMS]

⚠️ You will be billed for the AWS resource usage

Region Launch
US West (Oregon) Launch Who-is-Who Workshop in us-west-2
US East (Virginia) Launch Who-is-Who Workshop in us-east-1
  1. Enter a unique name for your Stack in the Stack name text box or you can use the default name as CF-AWSDBWorkshop2019

  2. We recommend to provide inputs only for OracleDBPassword and AuroraDBPassword and and leave the rest to default values.

  3. For ExistsDMSRole, specify Y if dms-vpc-role is already created in your AWS account. Go to your IAM console and search for dms-vpc-role . Otherwise, specify N so that it can be created with this CloudFormation stack. This role is required for creating DMS instance. For more information about setting up this role, see Creating the IAM Roles to Use with the AWS CLI and AWS DMS API. For ClientIP, leave it to default 0.0.0.0/0. However, for your actual deployments, we strongly recommend that you restrict the access to the RDS instance for your specific IP range. Click Next

  4. Check the box for acknowledging IAM Role creation with custom names and leave the rest to default values. Click Create Stack.

NOTE: The AWS CloudFormation stack creation takes about 10 minutes. You can see the progress by looking at the events section.

  1. You can monitor the progress of the stack creation by looking at the events tab as shown below.

(Optional) SQL Client Installation

Download and install the SQL Clients in your laptop or you can use the SQL client tool of your choice. Suggested open source tools which can work with both Oracle an PostgreSQL are provided below. Please note these tools require JDBC drivers (postgreSQL and Oracle JDBC for connectivity.

For step-by-step instructions on how to configure SQL-Workbench to connect to Oracle/PostgreSQL instances ,please refer to AWS Documentation (PostgreSQL and Oracle).

NOTE: For Labs, you don't need Oracle Client or any GUI based clients. Oracle Client is required only if you want to explore the sample data in the source. For working with target (Aurora PostgreSQL) instance, you can leverage psql command line utility. We will install this as part of Lab 1.

Workshop Details

Lab Name
Lab 1 Taxi Data Migration using AWS DMS
Lab 2 TaxiBookingAndPayments

License Summary

The documentation is made available under the Creative Commons Attribution-ShareAlike 4.0 International License. See the LICENSE file.

The sample code within this documentation is made available under the MIT-0 license. See the LICENSE-SAMPLECODE file.

About

A tutorial for developers, DBAs and data engineers to get hands-on experience on how to migrate relational data to AWS purpose-built databases such as Amazon DynamoDB, Amazon Aurora using AWS DMS and build data processing applications on top of it.

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
MIT-0
LICENSE-SAMPLECODE
Unknown
LICENSE-SUMMARY

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.9%
  • TSQL 20.1%