Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 2.29 KB

registered_model.md

File metadata and controls

56 lines (38 loc) · 2.29 KB
subcategory
Unity Catalog

databricks_registered_model Resource

-> This resource can only be used with a workspace-level provider!

This resource allows you to create Models in Unity Catalog in Databricks.

Example Usage

resource "databricks_registered_model" "this" {
  name         = "my_model"
  catalog_name = "main"
  schema_name  = "default"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the registered model. Change of this parameter forces recreation of the resource.
  • catalog_name - (Required) The name of the catalog where the schema and the registered model reside. Change of this parameter forces recreation of the resource.
  • schema_name - (Required) The name of the schema where the registered model resides. Change of this parameter forces recreation of the resource.
  • owner - (Optional) Name of the registered model owner.
  • comment - (Optional) The comment attached to the registered model.
  • storage_location - (Optional) The storage location under which model version data files are stored. Change of this parameter forces recreation of the resource.

Attribute Reference

In addition to all arguments above, the following attributes are exported:

  • id - Equal to the full name of the model (catalog_name.schema_name.name) and used to identify the model uniquely across the metastore.

Access Control

  • databricks_grants can be used to grant principals ALL_PRIVILEGES, APPLY_TAG, and EXECUTE privileges.

Import

The registered model resource can be imported using the full (3-level) name of the model.

terraform import databricks_registered_model.this <catalog_name.schema_name.model_name>

Related Resources

The following resources are often used in the same context: