@@ -40,26 +40,26 @@ resource "databricks_cluster" "cluster" {
40
40
dynamic "azure_attributes" {
41
41
for_each = var. azure_attributes == null ? [] : [var . azure_attributes ]
42
42
content {
43
- first_on_demand = lookup (azure_attributes. value , " first_on_demand" , null )
44
- availability = lookup (azure_attributes. value , " availability" , null )
45
- spot_bid_max_price = lookup (azure_attributes. value , " spot_bid_max_price" , null )
43
+ first_on_demand = lookup (azure_attributes. value , " first_on_demand" , null )
44
+ availability = lookup (azure_attributes. value , " availability" , null )
45
+ spot_bid_max_price = lookup (azure_attributes. value , " spot_bid_max_price" , null )
46
46
}
47
47
}
48
48
49
49
dynamic "gcp_attributes" {
50
50
for_each = var. gcp_attributes == null ? [] : [var . gcp_attributes ]
51
51
content {
52
- first_on_demand = lookup (gcp_attributes. value , " first_on_demand" , null )
53
- availability = lookup (gcp_attributes. value , " availability" , null )
54
- spot_bid_max_price = lookup (gcp_attributes. value , " spot_bid_max_price" , null )
52
+ first_on_demand = lookup (gcp_attributes. value , " first_on_demand" , null )
53
+ availability = lookup (gcp_attributes. value , " availability" , null )
54
+ spot_bid_max_price = lookup (gcp_attributes. value , " spot_bid_max_price" , null )
55
55
}
56
56
}
57
57
58
58
autotermination_minutes = var. cluster_autotermination_minutes
59
59
custom_tags = var. fixed_value == 0 ? merge ({ " ResourceClass" = " SingleNode" }, var. custom_tags ) : var. custom_tags
60
60
61
61
spark_conf = var. fixed_value == 0 ? { " spark.databricks.cluster.profile" : " singleNode"
62
- " spark.master" : " local[*]" } : var. spark_conf
62
+ " spark.master" : " local[*]" } : var. spark_conf
63
63
64
64
spark_env_vars = var. spark_env_vars
65
65
}
0 commit comments