Skip to content

Commit 0264305

Browse files
authored
fix: added cluster outputs
1 parent fd00a2a commit 0264305

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

outputs.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ output "token" {
1313
description = "Databricks Personal Authorization Token"
1414
sensitive = true
1515
}
16+
17+
output "clusters" {
18+
value = [for param in var.clusters : {
19+
name = param.cluster_name
20+
id = databricks_cluster.cluster[param.cluster_name].id
21+
} if length(var.clusters) != 0]
22+
description = "Provides name and unique identifier for the clusters"
23+
}

0 commit comments

Comments
 (0)