From d13ee50a324589c23e4db84423dcfd1273cc92b9 Mon Sep 17 00:00:00 2001 From: Karan Sharma Date: Mon, 8 Jan 2024 10:04:21 +0530 Subject: [PATCH] feat: simplify cluster renaming --- modules/nomad-clients/ec2.tf | 2 +- modules/nomad-clients/launch_template.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nomad-clients/ec2.tf b/modules/nomad-clients/ec2.tf index c968205..8b6cd13 100644 --- a/modules/nomad-clients/ec2.tf +++ b/modules/nomad-clients/ec2.tf @@ -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 diff --git a/modules/nomad-clients/launch_template.tf b/modules/nomad-clients/launch_template.tf index 04b0834..1e07950 100644 --- a/modules/nomad-clients/launch_template.tf +++ b/modules/nomad-clients/launch_template.tf @@ -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 } }