Last active
August 12, 2024 06:24
-
-
Save gerrytan/fc95bad900cbe3e6ef3c071c1132cc70 to your computer and use it in GitHub Desktop.
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
terraform { | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = "~>3.0" | |
} | |
databricks = { | |
source = "databricks/databricks" | |
version = "~>1.5.0" | |
} | |
} | |
} | |
provider "azurerm" { | |
features {} | |
} | |
resource "azurerm_resource_group" "rg" { | |
location = "australiasoutheast" | |
name = "rg_gtan_26935_2" | |
tags = { | |
Creator = "tangerry@microsoft.com" | |
DateCreated = "2024-08-12T05:29:54Z" | |
} | |
} | |
resource "azurerm_databricks_workspace" "example_4" { | |
name = "gtan_workspace_26935_4" | |
resource_group_name = azurerm_resource_group.rg.name | |
location = azurerm_resource_group.rg.location | |
sku = "standard" | |
public_network_access_enabled = true | |
tags = { | |
Creator = "tangerry@microsoft.com" | |
} | |
} | |
provider "databricks" { | |
host = azurerm_databricks_workspace.example_4.workspace_url | |
} | |
data "databricks_spark_version" "gpu_ml" { | |
gpu = true | |
ml = true | |
depends_on = [azurerm_databricks_workspace.example_4] | |
} | |
output "out_spark_version" { | |
value = data.databricks_spark_version.gpu_ml.id | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment