Skip to content

Commit

Permalink
feat: Catalog prefix option
Browse files Browse the repository at this point in the history
  • Loading branch information
alldoami committed Aug 27, 2024
1 parent a73e7fa commit 3e64f7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion databricks-catalog-external-location/catalogs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "databricks_catalog" "catalog" {
for_each = { for idx, catalog in var.catalogs : catalog.name => catalog }
name = each.value.name
storage_root = "s3://${module.catalog_bucket.name}/${each.value.name}"
storage_root = "s3://${module.catalog_bucket.name}/${each.value.catalog_prefix != "" ? each.value.catalog_prefix : each.value.name}"
comment = "this catalog is managed by terraform"
isolation_mode = each.value.isolation_mode
owner = each.value.owner
Expand Down
1 change: 1 addition & 0 deletions databricks-catalog-external-location/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ variable "catalogs" {
all_privileges_groups = list(string)
read_privileges_groups = optional(list(string), [])
write_privileges_groups = optional(list(string), [])
catalog_prefix = optional(string, "")
}))
}

0 comments on commit 3e64f7d

Please sign in to comment.