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.

AWSLaptop (Docker)Updated 2026-11-21

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

Execution

Data foundation

Operations

Serving

Teams

Lit boxes are part of this architecture, with the versions its reference repo pins. Switch to Full platform to see every capability. Select any box or team for details. marks a swappable choice.

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. 1

    Prepare a profile

    just init-profile and just doctor check AWS credentials and tooling.

  2. 2

    Sync state and secrets

    Terraform state and the Neon connection secret are synced into the account.

  3. 3

    Deploy

    just deploy uc-server applies Terraform: VPC, ALB, ECS service, EFS and the storage role.

  4. 4

    Bootstrap

    The bootstrap step creates the storage credential, the unity catalog and the unity.default schema.

Bill of materials

Components and versions

Versions are the ones pinned in the reference repositories below.
CapabilityComponentRole in this architectureVersionLicense
ExecutionBatch and SQLApache Sparkor Trino, DuckDBAny engine with a Unity Catalog or Iceberg REST clientApache-2.0
Data foundationCatalog and credentialsUnity Catalog OSSor unitycatalog-rs, Apache Polaris, LakekeeperCatalog server, digest-pinned and mirrored to ECR0.7.0Apache-2.0
Data foundationCatalog and credentialsNeonor PostgreSQLPostgres for catalog metadata
Data foundationObject storageAmazon S3Data bucket reached through a bucket-scoped storage role
OperationsRuntime, CI/CD and IaCAmazon ECS on Fargateor KubernetesRuns the server in a two-AZ VPC behind a public ALB
OperationsRuntime, CI/CD and IaCTerraformor OpenTofuDeclares the whole deployment>= 1.11, AWS provider ~> 6.45BUSL-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-server
open-lakehouse/open-lakehouseApache-2.0Laptop (Docker)AWS

terraform/ 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.