Skip to content

Commit b7e60dc

Browse files
committed
deltalake tutorial: clarify Databricks CLI auth — your own user, not the SP
1 parent 5f23192 commit b7e60dc

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎docs/tutorials/subscriptions-tutorials/data-lakehouse-aidboxtopicdestination.md‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,13 @@ This is one example, not the only approach — wrap it in a Databricks SQL view
479479

480480
The example below uses `managed-zerobus` (the default). For non-default modes see [`managed-sql`](#alternative-managed-sql-configuration) or [`external-direct`](#alternative-external-direct-configuration).
481481

482-
Authenticate the [Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/install) once (the rest of the steps assume these env vars are set):
482+
Authenticate the [Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/install) once — **as your own user** (PAT or `databricks auth login`), not as the service principal. The setup steps below create the catalog/schema/table and assign grants, which need the catalog-owner privileges your user has. The runtime SP receives only the grants explicitly listed in the "Grant the service principal" step. The destination resource you'll POST to Aidbox later carries the SP's `databricksClientId` / `databricksClientSecret` separately.
483483

484-
```sh
484+
```shell
485485
export DATABRICKS_HOST=https://<your-workspace>.cloud.databricks.com
486-
# Either OAuth M2M:
487-
export DATABRICKS_CLIENT_ID=<sp-client-id>
488-
export DATABRICKS_CLIENT_SECRET=<sp-client-secret>
489-
# OR a personal access token (PAT):
490-
# export DATABRICKS_TOKEN=<your-pat>
486+
# Use either a PAT for your own user, or run `databricks auth login`
487+
# for browser-based SSO.
488+
export DATABRICKS_TOKEN=<your-pat>
491489
```
492490

493491
{% stepper %}

0 commit comments

Comments
 (0)