Skip to content

randyridgley/glue-studio-taxi-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glue Studio Demo

This is a demo to showcase the ease of use Glue Studio brings to building Glue jobs in AWS. This demo is using the CDK to create the initial infrastructure. Once the setup is complete you should have a SageMaker notebook instance, S3 bucket, IAM Role, Glue database and crawler. This is all you need to get started using Glue Studio.

This repo also assumes the Glue Studio job will be running in an account the is using AWS Lake Formation as well for managing the security of the Glue dat Catalog. Using Lake Formation you can limit access to data lake resources down to the column level when using the Glue Data Catalog.

Configure required AWS account

Check that your AWS account is configured. Assume the role in the shell:

# Install from https://github.com/remind101/assume-role
eval $(assume-role your-aws-role)

Initial setup

First you need to have the needed build tools and the AWS CDK installed. After everything is installed you can bootstrap the project on wanted account.

Install dependencies

brew install node awscli
# Install or update CDK globally
npm i -g aws-cdk

Lake Formation Permissions

Permissions as the Lake Formation Admin and Database Creator are needed before you can run the cdk script. This is due to the fact that the script creates a Glue database and provides the required permissions for the IAM Role for the Glue job and the SageMaker notebook to have permissions needed to access data in the data lake.

Bootstrap the project on a selected account

# Go to the cdk directory
cd cdk/
# Initial build
npm run build
# Initialize the environment
cdk bootstrap aws://account-id/region

Initial deployment

Check that the stack builds.

npm run build

Bootstrap the account.

cdk bootstrap aws://<account>/us-east-1

Deploy the demo

cdk deploy '*'

Running the Notebook

Log into the AWS console ensuring you are in the region you executed the CloudFormation template. From the Service menu at the top find Amazon SageMaker under the Machine Learning section. On the Amazon SageMaker left hand menu click the Notebook Instances link and find the GlueStudioPrepNotebook notebook instance and click the Open JuypterLab link. Find the glue-studio-taxi-demo.ipynb notebook and follow the instructions in the notebook to complete the demo.

Other commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

About

Demo Glue Studio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages