Skip to content

Commit

Permalink
fix: Updated naming format of cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgadgi committed May 3, 2023
1 parent 7497d56 commit 8a9e592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ data "databricks_spark_version" "latest_lts" {

resource "databricks_cluster" "cluster" {
count = var.cluster_enable == true ? 1 : 0
cluster_name = format("dbsc-%s", var.name, )
cluster_name = format("%s-cluster", module.labels.id)

spark_version = var.spark_version != null ? var.spark_version : data.databricks_spark_version.latest_lts.id
node_type_id = data.databricks_node_type.smallest.id
Expand Down

0 comments on commit 8a9e592

Please sign in to comment.