databricks_metastores Data Source issue:
terraform code used:
<code>data "databricks_metastores" "all" {}
output "all_metastores" {
value = data.databricks_metastores.all.ids
}
</code>
<code>data "databricks_metastores" "all" {}
output "all_metastores" {
value = data.databricks_metastores.all.ids
}
</code>
data "databricks_metastores" "all" {}
output "all_metastores" {
value = data.databricks_metastores.all.ids
}
I have used the azure account level provider as below.
<code>provider "databricks" {
alias = "azure_account"
host = "https://accounts.azuredatabricks.net"
account_id = "valid account id" # provided valid account id
auth_type = "azure-cli"
}
</code>
<code>provider "databricks" {
alias = "azure_account"
host = "https://accounts.azuredatabricks.net"
account_id = "valid account id" # provided valid account id
auth_type = "azure-cli"
}
</code>
provider "databricks" {
alias = "azure_account"
host = "https://accounts.azuredatabricks.net"
account_id = "valid account id" # provided valid account id
auth_type = "azure-cli"
}
Error:
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: cannot read metastores: cannot get client metastores: invalid Databricks Account configuration
│
<code>
│ `with data.databricks_metastores.all,
│ on main.tf line 59, in data "databricks_metastores" "all":
│ 59: data "databricks_metastores" "all" {}
</code>
<code>
│ `with data.databricks_metastores.all,
│ on main.tf line 59, in data "databricks_metastores" "all":
│ 59: data "databricks_metastores" "all" {}
</code>
│ `with data.databricks_metastores.all,
│ on main.tf line 59, in data "databricks_metastores" "all":
│ 59: data "databricks_metastores" "all" {}
Could you please me to resolve this?
Trying to get the meatastore id
New contributor
user26489951 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.