From 39f96b228c91ede7184fec36505840d58ddf4b7e Mon Sep 17 00:00:00 2001 From: Alex Ott Date: Fri, 26 Jul 2024 05:53:11 +0200 Subject: [PATCH] [Doc] Add troubleshooting instructions for `databricks OAuth is not supported for this host` error (#3815) ## Changes ## Tests - [ ] `make test` run locally - [x] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] relevant acceptance tests are passing - [ ] using Go SDK --- docs/guides/troubleshooting.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/guides/troubleshooting.md b/docs/guides/troubleshooting.md index 1979aad5f3..bb2e79d071 100644 --- a/docs/guides/troubleshooting.md +++ b/docs/guides/troubleshooting.md @@ -203,3 +203,12 @@ provider "databricks" { ``` The above would enforce the use of PAT authorization. + + +### oauth-m2m: oidc: databricks OAuth is not supported for this host. + +There could be different reasons for this error: + +- Old version of Terraform provider is used - there were [problems reported](https://github.com/databricks/terraform-provider-databricks/issues/3023) with versions lower than 1.35.0, so try to upgrade your provider. +- You use multiple provider instances in your code and don't specify that specific instance in your resource or data source - in this case, Terraform will try to use "default instance" that could be initialized from the `DEFAULT` profile in your `~/.databrickscfg` file if you have it. Check that correct provider instance is used everywhere. +- If you're using authentication data from `~/.databrickscfg` file, check that profile you're using has correct data - URL, client ID and secret.