Skip to content

Commit 8665dcb

Browse files
authored
Merge pull request #14 from data-platform-hq/fix/mount
fix: updated mount uri
2 parents 60ed273 + 1f7759c commit 8665dcb

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

mount.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ resource "databricks_mount" "adls" {
22
for_each = var.mountpoints
33

44
name = each.key
5-
uri = "abfss://${each.value["container_name"]}@${each.value["storage_account_name"]}.dfs.core.windows.net/${each.value["root_path"]}"
5+
uri = "abfss://${each.value["container_name"]}@${each.value["storage_account_name"]}.dfs.core.windows.net"
66
extra_configs = {
77
"fs.azure.account.auth.type" : "OAuth",
88
"fs.azure.account.oauth.provider.type" : "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",

variables.tf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,12 @@ variable "node_type" {
161161
}
162162

163163
variable "mountpoints" {
164-
type = map(any)
164+
type = map(object({
165+
storage_account_name = string
166+
container_name = string
167+
}))
165168
description = "Mountpoints for databricks"
166-
default = null
169+
default = {}
167170
}
168171

169172
# Secret Scope variables

0 commit comments

Comments
 (0)