databricks_metastore Data Source

Retrieves information about metastore for a given id of databricks_metastore object, that was created by Terraform or manually, so that special handling could be applied.

Example Usage

MetastoreInfo response for a given metastore id

resource "databricks_metastore" "this" {
  provider      = databricks.workspace
  name          = "primary"
  storage_root  = "s3://${aws_s3_bucket.metastore.id}/metastore"
  owner         = var.unity_admin_group
  force_destroy = true
}

data "databricks_metastore" "this" {
  metastore_id = databricks_metastore.this.id
}

output "some_metastore" {
  value = data.databricks_metastore.this.metastore_info[0]
}

Argument Reference

Provide one of the arguments to get information about a metastore:

Attribute Reference

This data source exports the following attributes:

The following resources are used in the same context: