How chandusrinivas0506/youtube-data-piepline-aws-s3-lambda-glue-athena-stepfunction works
This repository implements a scheduled YouTube trending-data ETL pipeline. Its main workflow collects regional video and category data, lands raw inputs in Bronze, transforms statistics and reference data into Silver, validates Silver data, and builds Gold analytics for Athena and QuickSight. Historical Kaggle data is also documented as a Bronze input. The graph preserves the three documented analytics outputs and the optional category-reference join. Some orchestration, ingestion, and quality-gate implementation files were not sampled; their links rely on README statements rather than inspected source.
Main entry points: pipeline_orchestation.json Step Functions · silver_to_gold_analytics.py Analytics Aggregation · lambda_function.py Video Ingestion · bronze_to_silver_statistics.py Statistics Cleanup
Components 16
Ingestion
- EventBridge Schedule
- Step Functions
step_functions/pipeline_orchestation.json - Video Ingestion
lambdas/youtube_api_integstion/lambda_function.py - Historical Data
data
Medallion Storage
- Bronze S3
- Silver S3
- Gold S3
Transformations
- Statistics Cleanup
glue_jobs/bronze_to_silver_statistics.py - Reference Transform
lambdas/json_to_parquet/lambda_function.py
Quality Gate
- Data Quality
data_quality/dq_lambda.py - SNS Alerts
Analytics
- Analytics Aggregation
glue_jobs/silver_to_gold_analytics.py - Athena
- QuickSight
Other components
- YouTube API
- Kaggle Dataset
Connections 21
- EventBridge Schedule → Step Functions: starts
README.md - Step Functions → Video Ingestion: coordinates
README.md - YouTube API → Video Ingestion: provides data
README.md - Video Ingestion → Bronze S3: writes raw data
README.md - Kaggle Dataset → Historical Data: supplies data
README.md - Historical Data → Bronze S3: uploaded to
README.md - Step Functions → Statistics Cleanup: coordinates
README.md - Step Functions → Reference Transform: coordinates
README.md - Bronze S3 → Statistics Cleanup: read catalog data
glue_jobs/bronze_to_silver_statistics.py - Statistics Cleanup → Silver S3: writes Parquet
glue_jobs/bronze_to_silver_statistics.py - Bronze S3 → Reference Transform: triggers and supplies JSON
lambdas/json_to_parquet/lambda_function.py - Reference Transform → Silver S3: writes Parquet
lambdas/json_to_parquet/lambda_function.py - Step Functions → Data Quality: runs quality gate
README.md - Silver S3 → Data Quality: validates data
README.md - Data Quality → SNS Alerts: alerts on failure
README.md - Step Functions → Analytics Aggregation: runs after validation
README.md - Silver S3 → Analytics Aggregation: reads statistics
glue_jobs/silver_to_gold_analytics.py - Silver S3 → Analytics Aggregation: optionally joins reference
glue_jobs/silver_to_gold_analytics.py - Analytics Aggregation → Gold S3: writes analytics tables
glue_jobs/silver_to_gold_analytics.py - Gold S3 → Athena: queried by
README.md - Gold S3 → QuickSight: analyzed in
README.md