Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.27 KB

metastore_assignment.md

File metadata and controls

32 lines (24 loc) · 1.27 KB
subcategory
Unity Catalog

databricks_metastore_assignment (Resource)

-> Public Preview This feature is in Public Preview. Contact your Databricks representative to request access.

A single databricks_metastore can be shared across Databricks workspaces, and each linked workspace has a consistent view of the data and a single set of access policies. It is only recommended to have multiple metastores when organizations wish to have hard isolation boundaries between data (note that data cannot be easily joined/queried across metastores).

Example Usage

resource "databricks_metastore" "this" {
  name          = "primary"
  storage_root  = "s3://${aws_s3_bucket.metastore.id}/metastore"
  owner         = "uc admins"
  force_destroy = true
}

resource "databricks_metastore_assignment" "this" {
  metastore_id = databricks_metastore.this.id
  workspace_id = local.workspace_id
}

Argument Reference

The following arguments are required:

  • metastore_id - Unique identifier of the parent Metastore
  • workspace_id - id of the workspace for the assignment
  • default_catalog_name - (Optional) Default catalog used for this assignment, default to hive_metastore