โ10-05-2022 09:31 AM
In the documentation
https://registry.terraform.io/providers/databricks/databricks/latest/docs
https://docs.gcp.databricks.com/dev-tools/terraform/index.html
I could not find documentation on how to provision Databricks workspaces in GCP. Only creating Databricks workspaces in AWS and Azure is mentioned.
Is it possible to provision Databricks workspaces using terraform in Google Cloud Platform ?
โ10-06-2022 06:02 AM
Hi, @horatiu gujaโ , as of now we do not have public document on the same. It is possible, but, there is no straight forward way to do it.
โ10-06-2022 06:27 AM
In addition to the previous comment, attaching the document which is in private preview as of now.
Please let us know if you need further clarification on the same.
โ10-10-2022 05:48 AM
Hi @Debayan Mukherjeeโ
thanks for the document. Really valuable resource. I have tried and got blocked into following error:
databricks_mws_workspaces.this: Creating...
โท
โ Error: cannot create mws workspaces: BAD_REQUEST: workspace creation REST API is not available to use. Please contact Databricks support
โ
โ with databricks_mws_workspaces.this,
โ on main.tf line 35, in resource "databricks_mws_workspaces" "this":
โ 35: resource "databricks_mws_workspaces" "this" {
โ
Any reason why this could happen ? Is this API maybe working from Databricks PREMIUM plan and not working in STANDARD plan ?
Thanks
Horatiu
โ10-10-2022 08:25 AM
Hi @horatiu gujaโ , let me check on the error. This is still under development and does not work any many cases (hence the document is not published publicly).
โ10-10-2022 08:50 AM
@horatiu gujaโ , This feature works only for premium plan.
โ11-17-2022 07:08 AM
Hi @Debayan Mukherjeeโ
following the document I was able to create workspace and add some infrastructure in the workspace. Issue I face now is when running terraform destroy. Then I get following error:
โท
โ Error: cannot read user: cannot configure google-workspace auth: could not obtain OIDC token. impersonate: an audience must be provided Running 'gcloud auth application-default login' may help. Attributes used: google_credentials, google_service_account. Please check https://registry.terraform.io/providers/databricks/databricks/latest/docs#authentication for details
โ
โ with databricks_user.me,
โ on main.tf line 70, in resource "databricks_user" "me":
โ 70: resource "databricks_user" "me" {
โ
When the error occurs I am still logged in GCP using gcloud auth application-default login. Any hint what could be the reason for that ?
thanks
Horatiu
โ11-13-2022 08:01 PM
Hi @horatiu gujaโ
Does @Debayan Mukherjeeโ response answer your question?
If yes, would you be happy to mark it as best so that other members can find the solution more quickly? Else, we can help you with more details.
โ11-14-2022 04:44 AM
Hi @Vidula Khannaโ
solution works and will mark it as best. Just want to mention that Accounts API are needed and in GCP this is in preview. To use them the preview must be enabled for the corresponding account.
reggards
Horatiu
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group