Skip to content

Commit bfbbd8f

Browse files
MyroslavLevchykMyroslavLevchyk
authored andcommitted
upd
1 parent cfd82b4 commit bfbbd8f

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,13 @@ Here we provide some examples of how to provision it with a different options.
2121
# Prerequisite resources
2222
2323
variable "databricks_account_id" {}
24-
variable "cloud_name" {} # cloud provider (e.g., aws, azure)
2524
2625
# Databricks Workspace with Premium SKU
2726
data "azurerm_databricks_workspace" "example" {
2827
name = "example-workspace"
2928
resource_group_name = "example-rg"
3029
}
3130
32-
# Databricks Workspace ID for Azure
33-
data "azurerm_databricks_workspace" "example" {
34-
name = "example-workspace"
35-
resource_group_name = "example-rg"
36-
}
37-
38-
# Databricks Workspace ID for AWS
39-
data "databricks_mws_workspaces" "example" {
40-
account_id = var.databricks_account_id
41-
}
42-
4331
# Databricks Provider configuration
4432
provider "databricks" {
4533
alias = "main"
@@ -78,7 +66,7 @@ module "databricks_account_groups" {
7866
source = "data-platform-hq/databricks-account-groups/databricks"
7967
version = "1.0.1"
8068
81-
workspace_id = var.cloud_provider == "azure" ? data.azurerm_databricks_workspace.example.id : data.databricks_mws_workspaces.example.workspaces[0].workspace_id
69+
workspace_id = data.azurerm_databricks_workspace.example.id
8270
workspace_group_assignment = local.databricks_iam_account_groups
8371
8472
providers = {
@@ -96,7 +84,7 @@ module "databricks_runtime_premium" {
9684
location = "eastus"
9785
9886
# Cloud provider
99-
cloud_name = var.cloud_name
87+
cloud_name = "azure"
10088
10189
# Example configuration for Workspace Groups
10290
iam_workspace_groups = {

0 commit comments

Comments
 (0)