More patterns · Open reference architecture
Self-hosted catalog on AWS
Unity Catalog OSS on ECS Fargate with Neon Postgres and S3, in Terraform
The open catalog in your own AWS account, with no static storage keys.
In one paragraph
A self-hosted open catalog on AWS runs Unity Catalog OSS as a container on Amazon ECS Fargate behind an Application Load Balancer, keeps catalog metadata in a managed Postgres database, stores configuration on EFS and secrets in AWS Secrets Manager, and vends credentials for an S3 data bucket through a bucket-scoped IAM role instead of static keys. Everything is declared in Terraform, so the catalog can be recreated in another account or region from code.
More patterns
Unity Catalog OSS on ECS Fargate with Neon Postgres and S3, in Terraform
Sources
Ingestion
Open lakehouse platform
Engine access
How agents, apps and people reach compute: a client session per identity.
Execution
Spark's execution modes, plus engines that read the same tables.
Data foundation
Open tables in a governed catalog, on storage you own.
Operations
Serving
Teams
When to use it
- You want an open catalog in your own cloud account.
- Data residency or sovereignty rules out a hosted service.
When to pick something else
- A full compute stack: this reference deploys the catalog server; compute is deployed separately.
Walkthrough
How data moves through it
- 1
Prepare a profile
just init-profile and just doctor check AWS credentials and tooling.
- 2
Sync state and secrets
Terraform state and the Neon connection secret are synced into the account.
- 3
Deploy
just deploy uc-server applies Terraform: VPC, ALB, ECS service, EFS and the storage role.
- 4
Bootstrap
The bootstrap step creates the storage credential, the unity catalog and the unity.default schema.
Bill of materials
Components and versions
| Capability | Component | Role in this architecture | Version | License |
|---|---|---|---|---|
| ExecutionBatch and SQL | Apache Sparkor Trino, DuckDB | Any engine with a Unity Catalog or Iceberg REST client | Apache-2.0 | |
| Data foundationCatalog and credentials | Unity Catalog OSSor unitycatalog-rs, Apache Polaris, Lakekeeper | Catalog server, digest-pinned and mirrored to ECR | 0.7.0 | Apache-2.0 |
| Data foundationCatalog and credentials | Neonor PostgreSQL | Postgres for catalog metadata | ||
| Data foundationObject storage | Amazon S3 | Data bucket reached through a bucket-scoped storage role | ||
| OperationsRuntime, CI/CD and IaC | Amazon ECS on Fargateor Kubernetes | Runs the server in a two-AZ VPC behind a public ALB | ||
| OperationsRuntime, CI/CD and IaC | Terraformor OpenTofu | Declares the whole deployment | >= 1.11, AWS provider ~> 6.45 | BUSL-1.1 |
People and agents
Who works with it
Data engineers
Pipelines that are correct, idempotent and cheap to rerun.
Works with: Batch and SQL
Analysts and analytics engineers
One definition of each metric, fast SQL, and dashboards that match.
Works with: Batch and SQL
Platform engineers
A platform that is boring to run: deployable from code, observable, with identities for every person, service and agent.
Works with: Object storage, Catalog and credentials, Runtime, CI/CD and IaC
Governance and security
Policies that hold in every engine and for every agent, lineage for audits, and least privilege by default.
Works with: Catalog and credentials
Run it
Reference code
Terraform and scripts for deploying open source lakehouse services to the cloud, starting with Unity Catalog on AWS.
just init-profile prod
just doctor
just sync terraform-state
just sync neon-secret
just deploy uc-serverterraform/ holds AWS deployment for the rest of the stack, including Spark and MLflow on ECS (just deploy spark-ecs, just deploy mlflow-ecs).
git clone https://github.com/open-lakehouse/open-lakehouse
cd open-lakehouse
cp .env.example .env # fill in POSTGRES_*, S3_* placeholders
./lakehouse setup # validate env, install deps, download ~860MB of JARs
./lakehouse start all # Spark 4.1 master + worker + Connect server + Kafka
./lakehouse start unity-catalog
./lakehouse start mlflow
./lakehouse status --json # confirm healthy (incl. spark.connect_grpc_listening)Caveats from the reference repos
- Upgrading Unity Catalog from 0.6.0 or earlier needs a schema change: ALTER TABLE uc_properties ALTER COLUMN property_value TYPE text;
- Unity Catalog 0.7.0 permanently deletes dropped managed table files after seven days.
- The default ingress CIDR is 0.0.0.0/0; narrow it before production.
- During the measured v0.7.0 cutover in the sandbox, 5 of 491 requests returned 502 within 8 seconds (docs/unitycatalog/observability.md).
Industry lenses
Where this architecture shows up
Each card opens the board with that industry's sources. Full industry pages: Energy and utilities.
Answers
Frequently asked questions
- How do I deploy Unity Catalog OSS on AWS?
- terraform-deploy-oss runs Unity Catalog 0.7.0 on ECS Fargate behind an ALB, with Neon Postgres for metadata, EFS for configuration and a bucket-scoped IAM role for S3, deployed with just deploy uc-server.
Related architectures
All architecturesMore patterns
Policy pushdown and open lineage
Cedar policies compiled to CEL, enforced in Spark and DataFusion, with OpenLineage
More patterns
ML and GenAI lifecycle on the lakehouse
MLflow tracking, registry and AI Gateway over open tables
More patterns
Arrow-native serving
Arrow Flight SQL and Spark Connect clients over lakehouse tables
