terraform-provider-databricks icon indicating copy to clipboard operation
terraform-provider-databricks copied to clipboard

[FEATURE] Create a workspace_bindings resource that can resolve configuration drift

Open DSollick opened this issue 1 year ago • 0 comments

Use-cases

databricks_catalog_workspace_binding objects do not detect configuration drift such as additional bindings added outside of IAC, which would be very useful to have in the style of databricks_grants.

Proposal

Create a databricks_catalog_workspace_bindings resource that takes a catalog resource, and n amount of workspace_binding blocks.

resource "databricks_catalog_workspace_bindings" "self" {
  catalog_id = "catalog_id"
  workspace_binding {
    workspace_id = "workspace_1_id"
  }
  workspace_binding {
    workspace_id = "workspace_2_id"
    binding_type = "BINDING_TYPE_READ_ONLY"
  }
}

This resource requires that the databricks_catalog isolation_mode attribute must be set to ISOLATED.

DSollick avatar Apr 24 '24 19:04 DSollick