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

Commit 31cf02d

Browse files
toast-gearCallum
and
Callum
authored
feat: adding var for tags for ec2s (#1357)
Co-authored-by: Callum <[email protected]>
1 parent 6522317 commit 31cf02d

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

Diff for: main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ module "runners" {
123123
userdata_pre_install = var.userdata_pre_install
124124
userdata_post_install = var.userdata_post_install
125125
key_name = var.key_name
126+
runner_ec2_tags = var.runner_ec2_tags
126127

127128
create_service_linked_role_spot = var.create_service_linked_role_spot
128129

Diff for: modules/runners/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ resource "aws_launch_template" "runner" {
9393
{
9494
"Name" = format("%s", local.name_runner)
9595
},
96+
var.runner_ec2_tags
9697
)
9798
}
9899

Diff for: modules/runners/variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -368,3 +368,9 @@ variable "egress_rules" {
368368
description = null
369369
}]
370370
}
371+
372+
variable "runner_ec2_tags" {
373+
description = "Map of tags that will be added to the launch template instance tag specificatons."
374+
type = map(string)
375+
default = {}
376+
}

Diff for: variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -406,3 +406,9 @@ variable "disable_check_wokflow_job_labels" {
406406
type = bool
407407
default = false
408408
}
409+
410+
variable "runner_ec2_tags" {
411+
description = "Map of tags that will be added to the launch template instance tag specificatons."
412+
type = map(string)
413+
default = {}
414+
}

0 commit comments

Comments
 (0)