File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
locals {
2
2
# This optional suffix is added to the end of resource names.
3
- suffix = length (var. suffix ) == 0 ? " " : " -${ var . suffix } "
3
+ suffix = length (var. suffix ) == 0 ? " " : " -${ var . suffix } "
4
+
4
5
databricks_metastore_name = var. custom_databricks_metastore_name == null ? " meta-${ var . project } -${ var . env } -${ var . location } ${ local . suffix } " : var. custom_databricks_metastore_name
6
+
7
+ databricks_metastore_container_name = var. custom_databricks_metastore_container_name == null ? " meta-${ var . project } -${ var . env } " : var. custom_databricks_metastore_container_name
5
8
}
6
9
7
10
resource "azurerm_storage_data_lake_gen2_filesystem" "this" {
8
11
count = var. create_metastore ? 1 : 0
9
12
10
- name = " meta- ${ var . project } - ${ var . env } "
13
+ name = local . databricks_metastore_container_name
11
14
storage_account_id = var. storage_account_id
12
15
13
16
lifecycle {
Original file line number Diff line number Diff line change @@ -88,3 +88,9 @@ variable "custom_databricks_metastore_name" {
88
88
description = " The name to provide for your Databricks Metastore"
89
89
default = null
90
90
}
91
+
92
+ variable "custom_databricks_metastore_container_name" {
93
+ type = string
94
+ description = " The name to provide for your Databricks Metastore Container"
95
+ default = null
96
+ }
You can’t perform that action at this time.
0 commit comments