Skip to content

Commit

Permalink
Merge pull request #15 from zerodha/naming
Browse files Browse the repository at this point in the history
feat: simplify cluster renaming
  • Loading branch information
mr-karan authored Jan 10, 2024
2 parents d64d2c6 + d13ee50 commit 00a60d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/nomad-clients/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ resource "aws_instance" "nomad_client" {
}))

tags = {
Name = "${var.cluster_name}-client-${var.client_name}-${count.index + 1}"
Name = "${var.client_name}-${count.index + 1}"
role = "nomad-client"
nomad_client = var.client_name
nomad_ec2_join = var.nomad_join_tag_value
Expand Down
2 changes: 1 addition & 1 deletion modules/nomad-clients/launch_template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ resource "aws_launch_template" "nomad_client" {
resource_type = "instance"

tags = {
Name = "${var.cluster_name}-client-${var.client_name}"
Name = var.client_name
}
}

Expand Down

0 comments on commit 00a60d0

Please sign in to comment.