-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
24 lines (21 loc) · 974 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Create the Resource Group
resource "azurerm_resource_group" "this" {
name = "${lower(replace(var.company," ","-"))}-${var.app_name}-${var.environment}-${var.shortlocation}-rg"
location = var.location
tags = {
application = var.app_name
environment = var.environment
}
}
# Create the Databricks Workspace
resource "azurerm_databricks_workspace" "this" {
name = "${lower(replace(var.company," ","-"))}-${var.app_name}-${var.environment}-${var.shortlocation}-workspace"
resource_group_name = azurerm_resource_group.this.name
location = azurerm_resource_group.this.location
sku = "trial" // options: Standard, Premium, Trial
managed_resource_group_name = "${lower(replace(var.company," ","-"))}-${var.app_name}-${var.environment}-${var.shortlocation}-workspace-rg"
tags = {
application = var.app_name
environment = var.environment
}
}