✦ Want a lab built just for you? ✦
Request a Lab ↗

Building an Incremental ETL Pipeline for Pharma Supply Chain Analytics with AWS Glue

About this lab

You are a data engineer at PharmaFlow Logistics, a pharmaceutical distribution company that ships temperature-sensitive medications to hospitals and pharmacies across the country. Every day, new shipment files land in S3 from warehouse systems, but the current pipeline reprocesses everything from scratch each run. With data volumes growing 30% quarter over quarter, jobs are timing out and costs are climbing fast.

Your team needs a production-grade incremental pipeline that only processes new data each run. You will use AWS Glue Crawlers to auto-discover incoming file schemas, PySpark jobs with Job Bookmarks to track what has already been processed, Glue Data Quality rules to catch bad records before they pollute downstream tables, and Glue Workflows to orchestrate the full pipeline end to end. The output lands in partitioned Parquet tables on S3, queryable through Athena for supply chain dashboards tracking delivery performance, inventory levels, and cold chain compliance.

Lab details

  • Level: Intermediate
  • Cloud: AWS
  • Domain: Data Engineering
  • Duration: 90 minutes

What you will learn

  • Configure Glue Crawlers to automatically discover and catalog incoming CSV schemas
  • Build PySpark ETL jobs with Job Bookmarks for incremental data processing
  • Implement Glue Data Quality rules to validate records before loading
  • Design partitioned Parquet output tables for optimal query performance
  • Orchestrate the full pipeline using Glue Workflows with triggers
  • Query processed data with Athena to verify pipeline correctness

Concepts covered

  • Incremental ETL processing
  • Job Bookmarks for state tracking
  • Data quality validation with DQDL
  • Schema discovery with Crawlers
  • Pipeline orchestration with Workflows
  • Parquet columnar format
  • Table partitioning strategies

Technologies used

  • Amazon S3
  • AWS Glue Crawlers
  • AWS Glue PySpark
  • AWS Glue Job Bookmarks
  • AWS Glue Data Quality
  • AWS Glue Workflows
  • Amazon Athena
  • AWS IAM

Prerequisites

  • AWS account with permissions to create S3, Glue, Athena, and IAM resources
  • Basic understanding of Python and SQL
  • Familiarity with the AWS console
  • Understanding of ETL concepts and data pipelines

Topics

  • AWS
  • Glue
  • PySpark
  • ETL
  • S3
  • Athena
  • Data Quality
  • Incremental
  • Workflows
  • Data Engineering
  • Pharma