|
1 |
| -# Azure <> Terraform module |
2 |
| -Terraform module for creation Azure <> |
| 1 | +# Databricks Workspace Terraform module |
| 2 | +Terraform module used for Databricks Workspace configuration and Resources creation |
3 | 3 |
|
4 | 4 | ## Usage
|
5 | 5 |
|
6 | 6 | <!-- BEGIN_TF_DOCS -->
|
| 7 | +## Requirements |
7 | 8 |
|
| 9 | +| Name | Version | |
| 10 | +| ---------------------------------------------------------------------------- | --------- | |
| 11 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0.0 | |
| 12 | +| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >= 3.23.0 | |
| 13 | +| <a name="requirement_databricks"></a> [databricks](#requirement\_databricks) | >= 1.4.0 | |
| 14 | + |
| 15 | +## Providers |
| 16 | + |
| 17 | +| Name | Version | |
| 18 | +| ---------------------------------------------------------------------- | ------- | |
| 19 | +| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.24.0 | |
| 20 | +| <a name="provider_databricks"></a> [databricks](#provider\_databricks) | 1.4.0 | |
| 21 | + |
| 22 | +## Modules |
| 23 | + |
| 24 | +No modules. |
| 25 | + |
| 26 | +## Resources |
| 27 | + |
| 28 | +| Name | Type | |
| 29 | +| ----------------------------------------------------------------------------------------------------------------------------------------- | -------- | |
| 30 | +| [azurerm_key_vault_secret.sp_client_id](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_secret) | data | |
| 31 | +| [azurerm_key_vault_secret.sp_key](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_secret) | data | |
| 32 | +| [azurerm_key_vault_secret.tenant_id](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_secret) | data | |
| 33 | +| [databricks_token.pat](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/token) | resource | |
| 34 | +| [databricks_user.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/user) | resource | |
| 35 | +| [azurerm_role_assignment.this](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/role_assignment) | resource | |
| 36 | +| [databricks_cluster.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/cluster) | resource | |
| 37 | +| [databricks_mount.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/mount) | resource | |
| 38 | +| [databricks_secret_scope.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/secret_scope) | resource | |
| 39 | +| [databricks_secret.this](https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/secret) | resource | |
| 40 | + |
| 41 | +## Inputs |
| 42 | + |
| 43 | +| Name | Description | Type | Default | Required | |
| 44 | +| ---------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | --------------------------------------------------------------------------- | :------: | |
| 45 | +| <a name="input_workspace_id"></a> [workspace\_id](#input\_workspace\_id) | Databricks Workspace ID | `string` | n/a | yes | |
| 46 | +| <a name="input_sp_client_id_secret_name"></a> [sp\_client\_id\_secret\_name](#input\_sp\_client\_id\_secret\_name) | The name of Azure Key Vault secret that contains ClientID of Service Principal to access in Azure Key Vault | `string` | n/a | yes | |
| 47 | +| <a name="input_sp_key_secret_name"></a> [sp\_key\_secret\_name](#input\_sp\_key\_secret\_name) | The name of Azure Key Vault secret that contains client secret of Service Principal to access in Azure Key Vault | `string` | n/a | yes | |
| 48 | +| <a name="input_tenant_id_secret_name"></a> [tenant\_id\_secret\_name](#input\_tenant\_id\_secret\_name) | The name of Azure Key Vault secret that contains tenant ID secret of Service Principal to access in Azure Key Vault | `string` | n/a | yes | |
| 49 | +| <a name="input_key_vault_id"></a> [key\_vault\_id](#input\_key\_vault\_id) | ID of the Key Vault instance where the Secret resides | `string` | n/a | yes | |
| 50 | +| <a name="input_sku"></a> [sku](#input\_sku) | The sku to use for the Databricks Workspace: [standard \| premium \| trial] | `string` | "standard" | no | |
| 51 | +| <a name="input_pat_token_lifetime_seconds"></a> [pat\_token\_lifetime\_seconds](#input\_pat\_token\_lifetime\_seconds) | The lifetime of the token, in seconds. If no lifetime is specified, the token remains valid indefinitely | `number` | 315569520 | no | |
| 52 | +| <a name="input_cluster_nodes_availability"></a> [cluster\_nodes\_availability](#input\_cluster\_nodes\_availability) | Availability type used for all subsequent nodes past the first_on_demand ones: [SPOT_AZURE \| SPOT_WITH_FALLBACK_AZURE \| ON_DEMAND_AZURE] | `string` | null | no | |
| 53 | +| <a name="input_first_on_demand"></a> [first\_on\_demand](#input\_first\_on\_demand) | The first first_on_demand nodes of the cluster will be placed on on-demand instances: [[ \:number ]] | `number` | 0 | no | |
| 54 | +| <a name="input_spot_bid_max_price"></a> [spot\_bid\_max\_price](#input\_spot\_bid\_max\_price) | The max price for Azure spot instances. Use -1 to specify lowest price | `number` | -1 | no | |
| 55 | +| <a name="input_autotermination\_minutes"></a> [](#input\_autotermination\_minutes) | Automatically terminate the cluster after being inactive for this time in minutes. If not set, Databricks won't automatically terminate an inactive cluster. If specified, the threshold must be between 10 and 10000 minutes. You can also set this value to 0 to explicitly disable automatic termination | `number` | 15 | no | |
| 56 | +| <a name="input_min_workers"></a> [min\_workers](#input\_min\_workers) | The minimum number of workers to which the cluster can scale down when underutilized. It is also the initial number of workers the cluster will have after creation | `number` | 0 | no | |
| 57 | +| <a name="input_max_workers"></a> [max\_workers](#input\_max\_workers) | The maximum number of workers to which the cluster can scale up when overloaded. max_workers must be strictly greater than min_workers | `number` | 1 | no | |
| 58 | +| <a name="input_users"></a> [users](#input\_users) | List of users to access Databricks | `list(string)` | [] | no | |
| 59 | +| <a name="input_secrets"></a> [secrets](#input\_secrets) | Map of secrets to create in Databricks | `map(any)` | {} | no | |
| 60 | +| <a name="input_use_local_secret_scope"></a> [use\_local\_secret\_scope](#input\_use\_local\_secret\_scope) | Create databricks secret scope and create secrets | `bool` | false | no | |
| 61 | +| <a name="input_permissions"></a> [permissions](#input\_permissions) | Databricks Workspace permission maps | `list(map(string))` | <pre> [{ <br> object_id = null <br> role = null <br> }] </pre> | no | |
| 62 | +| <a name="input_spark_version"></a> [spark\_version](#input\_spark\_version) | Runtime version | `string` | "9.1.x-scala2.12" | no | |
| 63 | +| <a name="input_node_type"></a> [spark\_node\_type](#input\_node\_type) | Databricks_node_type id | `string` | "Standard_D3_v2" | no | |
| 64 | +| <a name="input_mountpoints"></a> [mountpoints](#input\_mountpoints) | Mountpoints for databricks | `map(any)` | null | no | |
| 65 | + |
| 66 | +## Outputs |
| 67 | + |
| 68 | +| Name | Description | |
| 69 | +| -------------------------------------------------------------------- | --------------------------------------- | |
| 70 | +| <a name="output_token"></a> [token](#output\_token) | Databricks Personal Authorization Token | |
| 71 | +| <a name="output_cluster_id"></a> [cluster\_id](#output\_cluster\_id) | Databricks Cluster Id | |
8 | 72 | <!-- END_TF_DOCS -->
|
9 | 73 |
|
10 | 74 | ## License
|
11 | 75 |
|
12 |
| -Apache 2 Licensed. For more information please see [LICENSE](https://github.com/data-platform-hq/terraform-azurerm<>/tree/master/LICENSE) |
| 76 | +Apache 2 Licensed. For more information please see [LICENSE](https://github.com/data-platform-hq/terraform-databricks-databricks-runtime/blob/main/LICENSE) |
0 commit comments