- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
- Data

Ingesting Data Using AWS Glue
You are a data engineer tasked with migrating some new CSV files into S3. Once there, you need to add the schema to Glue using Glue Crawler. The Data Science team would like to train some new models on a combined table of this information but only using a few select columns. To decrease cost and improve processing time, you need to create a job in Glue that will combine the CSV files together into one table but only including the needed columns. Then, you need to run the job and verify success in S3. After that, you will be ready to inform the Data Science team that the data is ready for training.

Lab Info
Table of Contents
-
Challenge
Prepare the Environment
- Create an S3 Bucket
- Create a "parking_data" folder
- Download Parking-Ticket-2022 data (https://open.toronto.ca/dataset/parking-tickets/)
- Upload file: Parking_Tags_Data_2022.000.csv to the "parking_data" folder
-
Challenge
Create a Glue Crawler
- Create a Glue Crawler to crawl the "parking_data" folder in S3.
- Create a Database named "parking"" in AWS Glue.
- Create and run an on demand crawler that will crawl the "parking_data" S3 folder.
- Create a new policy named "AWSGlueServiceRole-Parking"
-
Challenge
Create a Job in Glue
- Edit the AWSGlueServiceRole-Parking policy to allow for Read and Write access to AWS Glue.
- Create a Visual Job in AWS Glue
- Set the newly uploaded S3 file as the source
- Create a Transformation that will drop all colums except "date_of_infraction", "infraction_code", and "infraction_description"
- Create a data target to move the data back to the "parking_data" folder in S3. Have AWS Glue create a new "results" table and add it to the catalog.
- Run the job and verify the file exists in S3.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.