Skip to content

Commit

Permalink
Merge pull request #78 from tomarv2/develop
Browse files Browse the repository at this point in the history
adding support for data_security_mode
  • Loading branch information
tomarv2 authored Oct 21, 2022
2 parents fdd4ec3 + a975f8d commit 4d551e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ No modules.
| <a name="input_create_group"></a> [create\_group](#input\_create\_group) | Create a new group, if group already exists the deployment will fail. | `bool` | `false` | no |
| <a name="input_create_user"></a> [create\_user](#input\_create\_user) | Create a new user, if user already exists the deployment will fail. | `bool` | `false` | no |
| <a name="input_custom_tags"></a> [custom\_tags](#input\_custom\_tags) | Extra custom tags | `any` | `null` | no |
| <a name="input_data_security_mode"></a> [data\_security\_mode](#input\_data\_security\_mode) | Access mode | `string` | `"NONE"` | no |
| <a name="input_databricks_username"></a> [databricks\_username](#input\_databricks\_username) | User allowed to access the platform. | `string` | `""` | no |
| <a name="input_deploy_cluster"></a> [deploy\_cluster](#input\_deploy\_cluster) | feature flag, true or false | `bool` | `false` | no |
| <a name="input_deploy_cluster_policy"></a> [deploy\_cluster\_policy](#input\_deploy\_cluster\_policy) | feature flag, true or false | `bool` | `false` | no |
Expand Down
2 changes: 1 addition & 1 deletion cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "databricks_cluster" "cluster" {
instance_pool_id = var.deploy_worker_instance_pool == true ? join("", databricks_instance_pool.worker_instance_nodes.*.id) : null
driver_node_type_id = var.deploy_worker_instance_pool != true ? local.driver_node_type : null
num_workers = var.fixed_value != null ? var.fixed_value : null

data_security_mode = var.data_security_mode
dynamic "autoscale" {
for_each = var.fixed_value == null && var.auto_scaling != null ? [var.auto_scaling] : []
content {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -364,3 +364,9 @@ variable "libraries" {
description = "Installs a library on databricks_cluster"
default = {}
}

variable "data_security_mode" {
description = "Access mode"
type = string
default = "NONE"
}

0 comments on commit 4d551e5

Please sign in to comment.