Data platforms: the same projects on Databricks and Snowflake

Data platforms on Databricks and on Snowflake, built in Terraform. The same two projects load and build on both every day, measured the same way.

Status
Shipped
Started
Nov 9, 2026
Updated
Nov 11, 2026
Stack
Terraform, AWS, Databricks, Snowflake, GitHub Actions
Links
Code and documentation on GitHub: AWS with Databricks, AWS with Snowflake

Results

The same two projects load and build on Databricks and on Snowflake every day, and everything they build and test passes on both.

From each project's daily runs of Nov 10 and 11, 2026, as the platforms' own READMEs report them: AWS with Databricks and AWS with Snowflake.

255 of 255seeds, models and tests pass on each platform

  • 0passwords or keys held by a Snowflake job
  • 0.16credits for a day's runs on Snowflake
  • $0for the same day's runs on Databricks

Both projects together, every day: the EEOC charge warehouse's 127 and AI operations' 128, built and tested on Databricks and again on Snowflake.

The pairings

The same two projects on each platform pairing: setup, each daily run, cost, who the jobs run as, and the code
AWS with DatabricksFree EditionAWS with SnowflakeEnterprise trial
SetupTerraform from CloudShell with a workspace token; account groups made by handTerraform from CloudShell with a key that never leaves it
The EEOC's daily runLoads in 55 s and 17 s, then all 127 seeds, models and tests in 70 sLoads in 32 s and 22 s, then all 127 seeds, models and tests in 30 s
AI operations' daily runLoad in 58 s, then all 128 in 68 sLoad in 34 s, then all 128 in 32 s
CostNothingTrial credits: 0.082 for the EEOC's daily run and 0.079 for AI operations' on Nov 11, under a 20-credit monthly quota
Who the jobs run asOne person's token, the owner of what it makes; a column mask hides names from everyoneA service user per job, by GitHub's OIDC token; a masking policy hides names from every role
CodeTerraform and its tests, on GitHubTerraform and its tests, on GitHub
Setup
AWS with Databricks, Free EditionTerraform from CloudShell with a workspace token; account groups made by hand
AWS with Snowflake, Enterprise trialTerraform from CloudShell with a key that never leaves it
The EEOC's daily run
AWS with Databricks, Free EditionLoads in 55 s and 17 s, then all 127 seeds, models and tests in 70 s
AWS with Snowflake, Enterprise trialLoads in 32 s and 22 s, then all 127 seeds, models and tests in 30 s
AI operations' daily run
AWS with Databricks, Free EditionLoad in 58 s, then all 128 in 68 s
AWS with Snowflake, Enterprise trialLoad in 34 s, then all 128 in 32 s
Cost
AWS with Databricks, Free EditionNothing
AWS with Snowflake, Enterprise trialTrial credits: 0.082 for the EEOC's daily run and 0.079 for AI operations' on Nov 11, under a 20-credit monthly quota
Who the jobs run as
AWS with Databricks, Free EditionOne person's token, the owner of what it makes; a column mask hides names from everyone
AWS with Snowflake, Enterprise trialA service user per job, by GitHub's OIDC token; a masking policy hides names from every role

Measured on Nov 10, 2026, in one daily run of each project, on the same commits for every pairing: EEOC charge intake and AI operations. A load is timed from its command's start to the loader's report that it finished, and a build by dbt's own clock. Snowflake's credits are from the scheduled runs of Nov 11, which fell in different hours, so its metering shows each project's on their own; the platform's README has them by warehouse. The tiers differ, so the table says what each run took where it ran; it does not rank the platforms.

System design

Every project follows the same seven layers, from what people use down to where its data comes from, and fills only the ones its problem needs.

  • ProductNone of its own: the projects that deploy here are what people use
  • IntelligenceNone: nothing here calls a model
  • ServingThe marts, the one layer a reader may see
  • ModelingA schema for each layer of models, which only a builder may write
  • StorageA private S3 lake; the kds catalog in Unity Catalog; the KDS database in Snowflake
  • IngestionA raw schema for each load and one for its staging, which only a loader may write
  • SourcesNone of its own: each project brings its sources

Across every layer

  • Quality 15 tests read the Terraform with no account; every day both projects build and test on each pairing
  • Governance A role or group per job, each with the least it needs; names masked; no Snowflake job holds a key
  • CI/CD Lint, strict types, the tests, terraform fmt and validate, an audit, CodeQL and a secrets scan
  • Cost The Databricks Free Edition costs nothing; a 20-credit monthly quota suspends every Snowflake warehouse

The skills it shows

6 of the 33 on the skills page, each with where it is shown.

The problem

A business choosing where its data runs hears a different pitch from every platform, each on its own demo. What it needs to see is its own kind of work on each one, set up the same way and measured the same way. And once it has chosen, the platform itself is seldom written down: who may write which tables, what each job signs in as and what stops a runaway bill are settings someone clicked once.

This project builds the platform as code, once for each pairing of a cloud with a data platform, and runs the same two projects on every pairing. The pairings so far are AWS with Databricks and AWS with Snowflake. The projects are the EEOC charge warehouse and AI operations. I'm building it for whoever has to choose a platform, or answer for the one already chosen.

Constraints

  • A platform and a project stay apart. Each platform is a repository of its own and holds no project's code, so a project moves to a new platform by changing its settings, with one set of models for all of them.
  • The least each job needs. A load may write the raw tables, a build may read raw and write the models, and a reader sees the finished tables alone.
  • No stored keys where the platform allows it. Whatever names an account is a secret, never a variable, because a public repository's logs are public.
  • Inside the free tiers. Each pairing is built and measured on a free edition or a trial, so the tiers differ. The figures say what a run took where it ran; they don't rank the platforms.

Design

Every pairing gives a project the same six things, so a project never asks for something one platform lacks:

  1. Identity. What each job signs in as, with no stored key wherever the platform allows it.
  2. Access. A role or a group for each job: loaders write raw, builders read raw and write the models, and readers see the marts alone.
  3. Compute. A small warehouse that stops when the work does.
  4. Storage. A schema for each layer, and one for each load's staging.
  5. A cost guard. A limit that stops the spending, where there is spending to stop.
  6. Code. Terraform, applied from AWS CloudShell, with its state in a private bucket.

A project joins a platform's list of deployers, by owner, name and numeric id, and sets a few secrets and variables in its own repository. From then on its daily run loads and builds on every pairing it has joined. Each pairing's jobs run apart from the others', so one platform failing leaves the rest running.

AWS with Databricks

Applied on Nov 9 and 10, 2026, on the Databricks Free Edition. Both projects load and build on it every day. Its repository holds two Terraform roots, one for AWS and one for Databricks, and the notes to set them up.

What it provides

  • Identity. For the lake, a role GitHub's workflows assume through OIDC, for an hour at most. For Databricks, one person's token.
  • Access. Grants to three account groups: loaders write raw, builders read raw and write the models, and readers see the marts alone.
  • Compute. The Free Edition's serverless SQL warehouse, 2X-Small.
  • Storage. A private, versioned S3 lake that takes TLS only, and the kds catalog in Unity Catalog: a schema for each layer and a landing volume.
  • Cost guard. None needed: the Free Edition costs nothing, and nothing here runs between deployments.
  • Code. Two Terraform roots, applied from CloudShell with their state in a private bucket.

How a project deploys

  1. Its repository joins the platform's list of deployers and the AWS root is applied again. The lake's role then trusts that repository's main branch, and no other.
  2. In the repository, whatever names an account goes in as a secret: the role, the bucket, the workspace's address and its token. The rest are variables: the region and the catalog.
  3. Every day the project copies its warehouse and its docs to the lake under its own prefix, and loads and builds in the catalog.

Who reaches what

Each account group on Databricks and what it reaches
data-loaders Makes and merges into the raw tables, and stages files.
data-builders Reads the raw tables, and writes the models and the marts.
data-readers Reads the marts alone.
personal-data-readers No one is in it. It is the one group a masked name shows to in full.

The lake's role lists, reads and adds objects and never deletes. In the catalog, each grant goes to an account group. The EEOC charge warehouse adds a column mask: every load ends by masking the charging party's name in the raw table. Every reader, the owner and the build included, sees an initial and a fingerprint, such as J. 3f9a0c2b71de, and a test fails the build if it ever reads a name.

Cost

The daily runs cost nothing: the Free Edition is free, and so are the role and GitHub's OIDC provider. The lake holds a few megabytes on S3, which cost cents a month.

AWS with Snowflake

Applied on Nov 10, 2026, on a 30-day Enterprise trial, in a Snowflake account on AWS. Both projects load and build on it every day. Its repository holds one Terraform root of 65 resources and the notes to set it up.

What it provides

  • Identity. A service user for each project's load and for its build, signed in by its workflow's GitHub OIDC token. No job has a password or a key.
  • Access. A role for each job: the load writes raw, the build reads raw and writes the models, and a reader sees the marts alone.
  • Compute. Three X-Small warehouses, one each for loading, building and reading, each suspended after a minute idle, so the loads' credits and the builds' show apart.
  • Storage. The KDS database: a schema for each layer and one for each load's staging, each with managed access.
  • Cost guard. A quota of 20 credits a month: a notice at half and at four fifths, and every warehouse suspended at the limit.
  • Code. One Terraform root, applied from CloudShell with a key that never leaves it, and taken down the same way.

How a project deploys

  1. Its repository joins the platform's list of deployers and the platform is applied again. That makes the project two service users: one for its load and one for its build.
  2. In the repository, the account's identifier goes in as a secret and the database's name as a variable, and two environments are made, one for each job, each limited to the main branch.
  3. Each job asks GitHub for a token made out to the account and signs in with it, as its own service user with its own role. Snowflake trusts one subject for each user: this repository, by name and id, in this environment. No other credential exists.

GitHub hides a secret by exact match, so the workflows also hide the account's identifier in upper and lower case.

Who reaches what

Each role on Snowflake, who holds it and what it reaches
LOADER Each project's load holds it, as its own service user. It writes the raw tables, on LOAD_WH.
BUILDER Each project's build holds it, as its own service user. It reads raw and writes the models and the marts, on BUILD_WH.
READER Meant for dashboards and people. It reads the marts and nothing under them, on READ_WH.
PERSONAL_DATA_READER No one holds it. It is the one role a masked name shows to in full.

The EEOC charge warehouse is the project that needs the last role. Every load ends by setting a masking policy on the charging party's name in the raw table. Every role, the build's included, reads an initial and a fingerprint, which is all the marts need to tell two people apart, and a test fails the build if it ever reads a name. Masking policies need the Enterprise edition, which the trial is on.

Cost

An X-Small warehouse is billed by the second while it runs, a minute at least each time it starts. The scheduled runs of Nov 11 fell in different hours, so Snowflake's own metering, which reports each warehouse by the hour, shows what each project uses in a day: the EEOC's run 0.082 credits and AI operations' 0.079, 0.16 for both. About four fifths of that is warehouse time, split almost evenly between the load warehouse and the build's. The rest is cloud services, the work Snowflake does outside a warehouse, which it bills only above a tenth of the day's warehouse credits, so a day of these two runs alone bills about 0.15. Storage for a few megabytes is negligible. The monthly quota suspends every warehouse long before the trial's credit could run out.

Evaluation

A platform is right when the projects on it are, so the projects are its test. Every day both load and build on both pairings, and all 255 of their seeds, models and tests pass on each: the EEOC charge warehouse's 127, one of which fails the build if it ever reads a name unmasked, and AI operations' 128.

The Terraform is checked before anything is applied. Fifteen tests read it with no cloud account, 7 for AWS with Databricks and 8 for AWS with Snowflake, and hold it to the rules a reviewer would look for: the bucket blocks every kind of public access, the lake's role trusts only the listed repositories and cannot delete, every service user signs in by OIDC with no password or key, every warehouse is small, suspends in a minute and sits under the quota, and the role that sees personal fields is granted to no one. CI also runs terraform fmt and terraform validate on every root.

The first apply and the first runs found what no test could. The Databricks Free Edition's API refused to make the catalog, so it is made in the workspace. On Snowflake the first runs each stopped on a fault of their own: a named window, which Snowflake's SQL lacks, and a workflow step that ran before the checkout. With both fixed, every job passed the same day.

Human review points

Nothing applies itself. Terraform shows its plan and waits for a yes, from a person at CloudShell, and CI only reads the code. A project joins a platform in a commit to the platform's own repository, by name and numeric id, which a person reviews before applying. And the one group or role a masked name shows to in full has no one in it, so letting anyone read a personal field is a change a person has to make.

Security and logging

On Snowflake no secret signs a job in. Each load and each build presents the token GitHub gives its workflow, and a service user trusts it only from one repository, by name and id, in an environment only the main branch may use. On AWS the lake's role is assumed with a token of the same kind, from a listed repository's main branch, for an hour at most, and can list, read and add objects in one bucket and never delete them. Databricks is the exception: its jobs sign in with one person's token, kept as a repository secret.

Whatever names an account is a repository secret, so the public logs mask it: the role, the bucket, the Databricks workspace and the Snowflake account. Terraform's state sits in a private bucket. The key Terraform signs in to Snowflake with is made in CloudShell and never leaves it, and the token it applies the Databricks root with is typed in each time and never stored. Every daily job writes its log to its run on GitHub, and Snowflake's metering shows the loads' credits apart from the builds'.

Known limitations

  • The Databricks Free Edition runs in Databricks' own hosting, not in the AWS account, so the lake and the catalog sit side by side. A workspace inside the account, reading the lake through Unity Catalog, needs a Databricks trial; that is the next step for that pairing.
  • On Databricks every job runs with one person's token, the owner of what it makes. So the grants bind whoever is added to a group later, not today's runs; the mask binds everyone. When the token lapses, the daily job fails at sign-in until it is replaced.
  • Two things on Databricks are made by hand, because the Free Edition's API can't make them: the catalog, on its default storage, and the account groups. The setup notes walk through both.
  • Snowflake runs on a 30-day trial. When that ends, or its credit runs out, everything there is taken down with Terraform unless it is kept on purpose, and the projects' Snowflake jobs stop once one variable is removed.
  • Terraform itself still signs in to Snowflake with a key pair. The key never leaves CloudShell, but it is a stored key, where the jobs have none.
  • One day's runs are a small sample, and the tiers differ. The pairings table says what each run took where it ran; it doesn't rank the platforms.
  • These are two pairings of a planned six: Azure and Google Cloud, each with Databricks and with Snowflake, are not built yet.
Kevin Street, smiling, arms crossed, leaning against a brick wall

Work with me

If you have an AI or data problem, or a question you've been meaning to ask someone, email me with a sentence or two about it and we'll set up a time to talk.

Follow me on LinkedIn and GitHub.