cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Having an issue assigning databricks_current_metastore with terraform provider

badari_narayan
New Contributor II

I am trying to assign my databricks_current_metastore on terraform and I get the following error back as an output 

Error: cannot read current metastore: cannot get client current metastore: invalid Databricks Workspace configuration

with data.databricks_current_metastore.this,

on main.tf line 23, in data "databricks_current_metastore" "this":

 23: data "databricks_current_metastore" "this"{

 

data "databricks_current_metastore" "this"{

  provider = databricks.accounts

  depends_on = [ data.azurerm_databricks_workspace.workspace ]

}

provider "databricks" {

  alias = "workspace"

  azure_client_id     = var.client_id

  azure_client_secret = var.client_secret

  azure_tenant_id     = var.tenant_id

  host                = data.azurerm_databricks_workspace.workspace.workspace_url

}

 

provider "azurerm" {

  client_id       = var.client_id

  client_secret   = var.client_secret

  tenant_id       = var.tenant_id

  subscription_id = var.subscription_id

  features {}

}

provider "databricks" {

    alias = "accounts"

    host =  "https://accounts.azuredatabricks.net"

    account_id = var.account_id

}

Can you help me to resolve this issue

0 REPLIES 0

Connect with Databricks Users in Your Area

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