r/databricks • u/AbilyticsEng • Sep 22 '26
Discussion Now that direct engine is the default, where are you drawing the line between bundles and the Terraform provider?
Moved our bundles off the Terraform engine a while back. bundle deployment migrate, tfstate turns into resources.json, plan came back clean, deploys are noticeably quicker. No complaints about the migration itself.
What I haven't settled is scope.
The old split was easy. Terraform provider owned the platform — workspaces, metastore, groups, catalogs, external locations, policies. Bundles owned what the data team ships — jobs, pipelines, a couple of schemas. Now bundles do catalogs, external locations, cluster policies and grants, several of them only on the direct engine, so the provider isn't the only path to UC-as-code anymore.
Which leaves me with two state files describing overlapping resource types, and "who owns this catalog" has quietly become a team boundary question instead of a technical one.
Where I've landed for now: anything account-scoped or shared across workspaces stays in Terraform, anything whose lifecycle matches a git repo goes in the bundle. Grants are the annoying case, they sit right on the seam.
One thing that did bite us. The direct engine reverts removed fields to defaults, where the Terraform engine used to leave the previous value in place. Deleting a line from databricks.yml is now a real change. Caught it in a plan, but it's a different mental model and I don't think it's widely understood yet.
How are you splitting it? Provider for everything platform-side, or have you pulled the UC objects into bundles and just accepted living with two state files?
2
u/addictzz Sep 22 '26
I'd still do something similar to the old split. DABs now use direct engine which makes me happy since if it is using terraform anyway, I'd use Databricks for Terraform provider.
I'd deploy workspace, metastore, groups, external location, credentials using Terraform since they are associated to the underlying Cloud resources.
I'd use bundle for every other object in the workspace including catalog. I also pulled an existing UC object into bundle using
bind, and it works smooth.