Skip to content

Commit 875bbe9

Browse files
authored
Merge pull request #8 from data-platform-hq/feat/remove_metastore_assignment_resource
feat: removed metastore assignment resource
2 parents dde43f3 + f406414 commit 875bbe9

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

main.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ resource "databricks_metastore_data_access" "this" {
5656
is_default = true
5757
}
5858

59-
resource "databricks_metastore_assignment" "this" {
60-
count = anytrue([var.create_metastore, length(var.external_metastore_id) != 0]) ? 1 : 0
61-
62-
workspace_id = var.workspace_id
63-
metastore_id = length(var.external_metastore_id) == 0 ? databricks_metastore.this[0].id : var.external_metastore_id
64-
default_catalog_name = "hive_metastore"
65-
}
66-
6759
# Catalog
6860
resource "databricks_catalog" "this" {
6961
for_each = anytrue([var.create_metastore, length(var.external_metastore_id) != 0]) ? var.catalog : {}

variables.tf

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,11 @@ variable "suffix" {
1919
default = ""
2020
}
2121

22-
variable "workspace_id" {
23-
type = string
24-
description = "Id of Azure Databricks workspace"
25-
}
26-
2722
# Unity Catalog variables
2823
variable "create_metastore" {
2924
type = bool
3025
description = "Boolean flag for Unity Catalog Metastore current in this environment. One Metastore per region"
31-
default = true
26+
default = false
3227
}
3328

3429
variable "access_connector_id" {

0 commit comments

Comments
 (0)