Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 28f712b

Browse files
authored
Enable custom names for ec instances (#28)
1 parent 59346de commit 28f712b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/runners/main.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ resource "aws_launch_template" "runner" {
6565

6666
tag_specifications {
6767
resource_type = "instance"
68-
tags = local.tags
68+
tags = merge(
69+
local.tags,
70+
{
71+
"Name" = format("%s", local.name_runner)
72+
},
73+
)
6974
}
7075

7176
user_data = base64encode(templatefile("${path.module}/templates/user-data.sh", {

0 commit comments

Comments
 (0)