Last active
May 9, 2021 06:01
-
-
Save MathiasGruber/8261cf5f5283c94e39d65a17b5e619f4 to your computer and use it in GitHub Desktop.
Basic setup for deploying a databricks workspace to azure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deploy to Azure | |
terraform { | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = "=2.46.0" | |
} | |
} | |
} | |
# Feature for Azure provider (required) | |
provider "azurerm" { | |
features {} | |
} | |
# Resource group for our infrastructure | |
resource "azurerm_resource_group" "mlops_demo_rg" { | |
name = "MLOpsDemo" | |
location = "West Europe" | |
} | |
# Premium databricks workspace | |
resource "azurerm_databricks_workspace" "databricks_workspace_demo" { | |
name = "databricks-demo" | |
resource_group_name = azurerm_resource_group.mlops_demo_rg.name | |
location = azurerm_resource_group.mlops_demo_rg.location | |
sku = "premium" | |
} | |
# Public Storage account for storing things | |
resource "azurerm_storage_account" "storage_account_demo" { | |
name = "mlopsstorageaccountdemo" | |
resource_group_name = azurerm_resource_group.mlops_demo_rg.name | |
location = azurerm_resource_group.mlops_demo_rg.location | |
account_tier = "Standard" | |
account_replication_type = "LRS" | |
allow_blob_public_access = true | |
} | |
# Public Storage container for storing things | |
resource "azurerm_storage_container" "storage_container_demo" { | |
name = "mlopsstoragecontainerdemo" | |
storage_account_name = azurerm_storage_account.storage_account_demo.name | |
container_access_type = "blob" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment