Skip to content

Commit a9ab69e

Browse files
committed
fix: only tag spot rquests for spot
1 parent 806bf58 commit a9ab69e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/runners/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ resource "aws_launch_template" "runner" {
207207
}
208208

209209
dynamic "tag_specifications" {
210-
for_each = var.instance_target_capacity_type == "spot" ? 1 : 0
210+
for_each = var.instance_target_capacity_type == "spot" ? [1] : [] # Include the block only if the value is "spot"
211211
content {
212212
resource_type = "spot-instances-request"
213213
tags = merge(

0 commit comments

Comments
 (0)