This terraform module creates a Databricks workspace in Azure.
- An Azure virtual network exists that the Databricks workspace and associated subnets will be injected into.
terraform apply
main.tf:
module "databricks_module" { source = "https://github.com/Datatamer/terraform-azure-databricks.git?ref=0.4.0" name = "tamr-databricks" resource_group_name = "rg" location = "eastus2" virtual_network_name = "vnet" virtual_network_rg_name = "rg" private_subnet_name = "databricks-private-subnet" public_subnet_name = "databricks-public-subnet" } Smallest complete working example. This example might require extra resources to run the example.
This modules creates:
- 1 Databricks workspace
- 2 security groups
| Name | Version |
|---|---|
| terraform | >= 0.12 |
No provider.
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| location | Location in which Databricks will be deployed | string | n/a | yes |
| name | Name of Databricks workspace | string | n/a | yes |
| private_subnet_name | Name of the private subnet | string | n/a | yes |
| public_subnet_name | Name of the public subnet | string | n/a | yes |
| resource_group_name | Name of resource group into which Databricks will be deployed | string | n/a | yes |
| virtual_network_name | Name of existing virtual network into which Databricks will be deployed | string | n/a | yes |
| virtual_network_rg_name | Name of resource group which contiains the virtual network and subnets | string | n/a | yes |
| tags | Map of tags to attach to Databricks workspace | map(string) | {} | no |
| Name | Description |
|---|---|
| security_group_private_id | ID of security group assigned to the private subnet |
| security_group_private_name | Name of security group assigned to the private subnet |
| security_group_public_id | ID of security group assigned to the public subnet |
| security_group_public_name | Name of security group assigned to the public subnet |
| workspace_id | ID of the Databricks workspace |
| workspace_name | Name of the Databricks workspace |
This repo is based on:
- Azure Databricks: https://docs.microsoft.com/en-us/azure/azure-databricks/
- Azure Databricks Terraform Docs: https://www.terraform.io/docs/providers/azurerm/r/databricks_workspace.html
- Azure Security Group Terraform Docs: https://www.terraform.io/docs/providers/azurerm/r/network_security_group.html
- Azure Subnet Terraform Docs: https://www.terraform.io/docs/providers/azurerm/r/subnet.html
- Update version contained in
VERSION - Document changes in
CHANGELOG.md - Create a tag in github for the commit associated with the version
Apache 2 Licensed. See LICENSE for full details.