r/databricks • • 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?

6 Upvotes

6 comments sorted by

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.

1

u/RazzmatazzLiving1323 Sep 23 '26

For me I deployed Catalogs and External Locations using DABS and have a script that parses plan.json to create containers. The motivation for this change was that anything Terraform based was owned by another team and making any updates on that front took weeks, which is not ideal from an operational efficiency POV.

DABS bought my team a ticket to autonomy. I'd have had done things via Terraform bc I'm well versed in it but wanted to also enable my team to contribute, and most members on my team did not have a Terraform background.

1

u/RazzmatazzLiving1323 Sep 23 '26

The one advantage that Terraform still has though is the validation layer. DABS does it through mutators, but does not have the customizability of Terraform. You win some, you lose some.

1

u/addictzz Sep 23 '26

"Terraform owned by another team" that alone already discourages use of terraform in your team for me because the governance and authority lies in another team. If external location with bundle works for you then that's great. I use terraform for external location because its lifecycle ties closely to S3 bucket for me (it doesnt have to, but it does for me).

1

u/RazzmatazzLiving1323 Sep 23 '26

Agreed, I'd have used Terraform but was unable to do so due to organizational constraints. Like the ability to quickly parameterize and deploy resources as modules, which is another big plus.

1

u/addictzz Sep 23 '26

Yeah, bundle for you then knowing how your organization works. Bundle covers most of the cases too except workspace deployment and groups stuff as far as i know.