Our role
We served as lead architect and implementer on an engagement delivered through a consulting partner. We audited the existing AWS Glue setup, designed and built the Prefect platform and workflows, and shipped the production release, working alongside the client's platform team.
The challenge
The client ran its sports-data pipelines on AWS Glue and wanted a Kubernetes workflow orchestrator on its existing Amazon EKS cluster. Getting a clear picture was hard. Of 267 jobs on record, 108 had never run, and most had no linked source repository. No Amazon CloudWatch alarm in the account monitored Glue, and no job was set to retry. Jobs also reached secrets and data lake storage directly, so a test run could write to live data. Rebuilt jobs had to match existing behaviour and roll out without disrupting running pipelines.
What we did
- Audited the Glue environment before moving anything. We catalogued every job, grouped them by pattern, and mapped how they triggered each other. That showed about 113 live jobs rather than the 267 on record, which set the migration scope.
- Proved Prefect on the existing cluster first. Before a wider build, we ran a pilot of 8 Prefect workflows to prove the approach on the client's cluster.
- Kept existing job code unchanged. A shared layer pulls secrets from AWS Secrets Manager into Kubernetes and redirects data lake writes to a test bucket during trials, and a build check blocks unsafe bucket access. That let us test flows without touching live data.
- Built one container image per group of flows, not one per job. Each deployment mounts its own secrets. GitHub Actions builds the image, checks that every flow loads, registers the deployments, and verifies each one in Prefect.
- Staged the production rollout. We released the Prefect platform and registered the deployments from a tagged release. Each group of jobs moves over on its own schedule, so existing pipelines keep running throughout the switch.
Results
- 267 AWS Glue jobs catalogued, and 108 never-run jobs identified for deletion.
- Pilot of 8 Prefect workflows proved the approach before the wider build.
- 21 Glue jobs plus 8 pilot flows rebuilt as Prefect flows.
- Prefect platform released to production with 30 flow deployments registered from a tagged release; the client's team ran the first live production flows the next day.
- Prefect upgrades automated with Renovate, backed by a documented revert procedure.
What the client kept
- Prefect platform repository: Helm chart, production configuration, CI/CD workflows, smoke tests, and user and developer guides
- Flows repository: the shared secrets and storage layer, container build file, development and production deployment definitions, CI workflows, and registration and validation scripts
- Deployment and memory right-sizing guides
- Renovate configuration with a documented revert procedure
- Handover to the client's team to run the platform and flows in production