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.
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]
}
Provide one of the arguments to get information about a metastore:
metastore_id
- ID of the metastorename
- Name of the metastoreregion
- Region of the metastoreThis data source exports the following attributes:
id
- ID of the metastoremetastore_info
- MetastoreInfo object for a databricks_metastore. This contains the following attributes:
name
- Name of metastore.storage_root
- Path on cloud storage account, where managed databricks_table
are stored.owner
- Username/groupname/sp application_id of the metastore owner.delta_sharing_scope
- Used to enable delta sharing on the metastore. Valid values: INTERNAL, INTERNAL_AND_EXTERNAL. INTERNAL only allows sharing within the same account, and INTERNAL_AND_EXTERNAL allows cross account sharing and token based sharing.delta_sharing_recipient_token_lifetime_in_seconds
- Used to set expiration duration in seconds on recipient data access tokens.delta_sharing_organization_name
- The organization name of a Delta Sharing entity. This field is used for Databricks to Databricks sharing.The following resources are used in the same context: