diff --git a/README.md b/README.md index e35ba7b..6286aa2 100644 --- a/README.md +++ b/README.md @@ -76,13 +76,13 @@ module "databricks_locations" { |------|---------| | [terraform](#requirement\_terraform) | >=1.0.0 | | [azurerm](#requirement\_azurerm) | >=3.40.0 | -| [databricks](#requirement\_databricks) | >=1.48.2 | +| [databricks](#requirement\_databricks) | >=1.48.3 | ## Providers | Name | Version | |------|---------| -| [databricks](#provider\_databricks) | >=1.48.2 | +| [databricks](#provider\_databricks) | >=1.48.3 | ## Modules @@ -102,8 +102,8 @@ No modules. | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [external\_locations](#input\_external\_locations) | List of object with external location configuration attributes |
list(object({
index = string # Index of instance, for example short name, used later to access exact external location in output map
name = string # Custom whole name of resource
url = string # Path URL in cloud storage
owner = optional(string) # Owner of resource
skip_validation = optional(bool, true) # Suppress validation errors if any & force save the external location
read_only = optional(bool, false) # Indicates whether the external location is read-only.
force_destroy = optional(bool, true)
force_update = optional(bool, true)
comment = optional(string, "External location provisioned by Terraform")
isolation_mode = optional(string, null)
permissions = optional(set(object({
principal = string
privileges = list(string)
})), [])
}))
| `[]` | no | -| [storage\_credential](#input\_storage\_credential) | Object with storage credentials configuration attributes |
object({
azure_access_connector_id = optional(string, null) # Azure Databricks Access Connector Id
cloud = optional(string, "azure")
name = string # Custom whole name of resource
owner = optional(string) # Owner of resource
force_destroy = optional(bool, true)
comment = optional(string, "Managed identity credential provisioned by Terraform")
permissions = optional(set(object({
principal = string
privileges = list(string)
})), [])
})
| n/a | yes | +| [external\_locations](#input\_external\_locations) | List of object with external location configuration attributes |
list(object({
index = string # Index of instance, for example short name, used later to access exact external location in output map
name = string # Custom whole name of resource
url = string # Path URL in cloud storage
owner = optional(string) # Owner of resource
skip_validation = optional(bool, true) # Suppress validation errors if any & force save the external location
read_only = optional(bool, false) # Indicates whether the external location is read-only.
force_destroy = optional(bool, true)
force_update = optional(bool, true)
comment = optional(string, "External location provisioned by Terraform")
isolation_mode = optional(string, null)
permissions = optional(set(object({
principal = string
privileges = list(string)
})), [])
isolation_mode = optional(string, "ISOLATION_MODE_OPEN")
}))
| `[]` | no | +| [storage\_credential](#input\_storage\_credential) | Object with storage credentials configuration attributes |
object({
azure_access_connector_id = optional(string, null) # Azure Databricks Access Connector Id
cloud = optional(string, "azure")
name = string # Custom whole name of resource
owner = optional(string) # Owner of resource
force_destroy = optional(bool, true)
comment = optional(string, "Managed identity credential provisioned by Terraform")
permissions = optional(set(object({
principal = string
privileges = list(string)
})), [])
isolation_mode = optional(string, "ISOLATION_MODE_OPEN")
})
| n/a | yes | ## Outputs diff --git a/main.tf b/main.tf index 0084c1f..5052a1e 100644 --- a/main.tf +++ b/main.tf @@ -34,8 +34,9 @@ resource "databricks_storage_credential" "azure" { access_connector_id = var.storage_credential.azure_access_connector_id } - force_destroy = var.storage_credential.force_destroy - comment = var.storage_credential.comment + force_destroy = var.storage_credential.force_destroy + comment = var.storage_credential.comment + isolation_mode = var.storage_credential.isolation_mode } resource "databricks_grants" "credential" { diff --git a/variables.tf b/variables.tf index 087c905..eac6f9b 100644 --- a/variables.tf +++ b/variables.tf @@ -10,6 +10,7 @@ variable "storage_credential" { principal = string privileges = list(string) })), []) + isolation_mode = optional(string, "ISOLATION_MODE_OPEN") }) description = "Object with storage credentials configuration attributes" } @@ -30,6 +31,7 @@ variable "external_locations" { principal = string privileges = list(string) })), []) + isolation_mode = optional(string, "ISOLATION_MODE_OPEN") })) description = "List of object with external location configuration attributes" default = [] diff --git a/versions.tf b/versions.tf index ecd27c9..f8efd29 100644 --- a/versions.tf +++ b/versions.tf @@ -8,7 +8,8 @@ terraform { } databricks = { source = "databricks/databricks" - version = ">=1.48.2" + version = ">=1.48.3" + } } }