{"id":30985215,"url":"https://github.com/tuni56/serverless-etl","last_synced_at":"2026-05-20T05:04:10.091Z","repository":{"id":313425803,"uuid":"1051383224","full_name":"tuni56/serverless-etl","owner":"tuni56","description":"Terraform-ready, plug-and-play serverless ETL repo ","archived":false,"fork":false,"pushed_at":"2025-09-05T23:09:36.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-06T01:10:29.435Z","etag":null,"topics":["aws","etl-pipeline","serverless","terraform"],"latest_commit_sha":null,"homepage":"https://medium.com/@intzabai/serverless-at-scale-how-i-built-a-fully-automated-data-processing-workflow-on-aws-a7b4c7d0d63b","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuni56.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-05T22:29:55.000Z","updated_at":"2025-09-05T23:09:39.000Z","dependencies_parsed_at":"2025-09-06T01:10:31.425Z","dependency_job_id":"b8a88d8f-10c9-40e9-abbe-3c25ded9d35c","html_url":"https://github.com/tuni56/serverless-etl","commit_stats":null,"previous_names":["tuni56/serverless-etl"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tuni56/serverless-etl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuni56%2Fserverless-etl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuni56%2Fserverless-etl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuni56%2Fserverless-etl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuni56%2Fserverless-etl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuni56","download_url":"https://codeload.github.com/tuni56/serverless-etl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuni56%2Fserverless-etl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274816949,"owners_count":25355225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","etl-pipeline","serverless","terraform"],"created_at":"2025-09-12T13:07:19.540Z","updated_at":"2026-05-20T05:04:10.044Z","avatar_url":"https://github.com/tuni56.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless ETL — AWS Lambda + Step Functions + EventBridge (Terraform-ready)\n\n\u003e Serverless ETL pipeline designed to process millions of events per day.  \n\u003e Orchestration with Step Functions. Ingestion via EventBridge. Transformations in AWS Lambda. Infrastructure as Code with Terraform.\n\n---\n\n## Overview\nThis repository contains a production-grade serverless ETL pipeline.  \nEventBridge ingests events from APIs, S3 uploads, and scheduled triggers.  \nStep Functions orchestrates a state machine that runs modular Lambdas for validation, enrichment, transformation, and loading.  \nThe final curated dataset is stored in S3. All components are deployable with reusable Terraform modules.\n\n---\n\n## Problem\nThe business needed to:\n- Handle highly variable workloads (50K events per hour up to 5M+ during peak hours).  \n- Operate without a dedicated DevOps team.  \n- Guarantee traceability, modularity, and strict SLAs on freshness and reliability.  \n- Avoid managing EC2, containers, or batch servers.\n\n---\n\n## Goals\n1. Fully serverless architecture.  \n2. Multi-step orchestration with retries and timeouts.  \n3. Automatic scaling for millions of daily events.  \n4. Reproducible deployments with Terraform.  \n5. Observability and fault tolerance (DLQ, idempotency).\n\n---\n\n# Serverless ETL — AWS Lambda + Step Functions + EventBridge (Terraform-ready)\n\n\u003e Serverless ETL pipeline designed to process millions of events per day.  \n\u003e Orchestration with Step Functions. Ingestion via EventBridge. Transformations in AWS Lambda. Infrastructure as Code with Terraform.\n\n---\n\n## Overview\nThis repository contains a production-grade serverless ETL pipeline.  \nEventBridge ingests events from APIs, S3 uploads, and scheduled triggers.  \nStep Functions orchestrates a state machine that runs modular Lambdas for validation, enrichment, transformation, and loading.  \nThe final curated dataset is stored in S3. All components are deployable with reusable Terraform modules.\n\n---\n\n## Problem\nThe business needed to:\n- Handle highly variable workloads (50K events per hour up to 5M+ during peak hours).  \n- Operate without a dedicated DevOps team.  \n- Guarantee traceability, modularity, and strict SLAs on freshness and reliability.  \n- Avoid managing EC2, containers, or batch servers.\n\n---\n\n## Goals\n1. Fully serverless architecture.  \n2. Multi-step orchestration with retries and timeouts.  \n3. Automatic scaling for millions of daily events.  \n4. Reproducible deployments with Terraform.  \n5. Observability and fault tolerance (DLQ, idempotency).\n\n---\n\n## Architecture diagram\n\n![1_Vx2pzdxsLXKhMLQUSHAMMw](https://github.com/user-attachments/assets/94203377-07c7-4ca3-91bc-9dee2e522fbf)\n\n---\n\n## Workflow\n1. **Ingestion**  \n   Events arrive from multiple sources into EventBridge. Scheduled rules (cron) also trigger flows.  \n\n2. **Trigger**  \n   EventBridge starts the Step Functions state machine.  \n\n3. **Processing (Step Functions)**  \n   - **Validate**: schema validation and idempotency checks (S3 flag).  \n   - **Enrich**: fetches additional data from external APIs.  \n   - **Transform**: normalizes timestamps, flattens payloads, prepares curated record.  \n   - **Upload**: writes curated record to S3 and returns the key.  \n\n4. **Completion**  \n   The state machine emits a completion event back to EventBridge for notifications or downstream triggers.  \n\n5. **Error handling**  \n   Each step defines retries and timeouts. Final failures are routed to SQS DLQ. Lambdas have dead-letter configs.  \n\n---\n\n## Key Design Decisions\n- **Step Functions orchestration** for visual debugging and parallelism.  \n- **Parallel execution**: each event runs independently.  \n- **Retries \u0026 timeouts** defined per state in ASL.  \n- **Idempotency** using record hash flags in S3.  \n- **Decoupled Lambdas**: each function is modular and replaceable.  \n- **Terraform modules** for reusability (`lambda_fn`, `s3_bucket`, `eventbridge_rule`, etc.).  \n- **Packaging** with `archive_file` or ZIPs.  \n- **Observability** with structured logging and CloudWatch metrics.  \n- **Cost efficiency**: pay-per-use with minimal operational overhead.  \n\n---\n\n## Results\n- Scale: millions of records per day.  \n- Reliability: \u003e99.99% successful executions.  \n- Latency: \u003c15s end-to-end per record (depending on flow).  \n- Operations: near-zero infrastructure maintenance.  \n- Deployment: fully automated in minutes with Terraform.  \n\n---\n\n## Stack\n- AWS Lambda (Python 3.11)  \n- AWS Step Functions (ASL JSON)  \n- Amazon EventBridge (ingestion + completion)  \n- Amazon S3 (raw, curated)  \n- Amazon SQS (DLQ)  \n- CloudWatch (logs, metrics, alarms)  \n- Terraform (IaC modules)  \n- GitHub Actions (CI/CD recommended)  \n- Optional: OpenSearch for error triage, Lambda Powertools for logging/tracing  \n\n---\n\n## Deployment (Quick Start)\n1. Configure AWS credentials.  \n2. Update `env/dev.tfvars` with `project`, `region`, `env`.  \n3. Initialize Terraform: make init\n4. Plan and apply: make plan    make apply\n5. Manual test:\nTrigger Step Functions execution:\n    aws stepfunctions start-execution \\\n  --state-machine-arn $STATE_MACHINE_ARN \\\n  --input file://event.json\nCheck logs: aws logs filter-log-events --log-group-name /aws/lambda/\u003cfn-name\u003e --limit 50   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuni56%2Fserverless-etl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuni56%2Fserverless-etl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuni56%2Fserverless-etl/lists"}