Skip to content

Commit 272fce0

Browse files
committed
fix: only tag spot requests if no on-demand fallback
1 parent 01e100f commit 272fce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/runners/main.tf

Lines changed: 1 addition & 1 deletion
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] : [] # Include the block only if the value is "spot"
210+
for_each = var.instance_target_capacity_type == "spot" && var.enable_on_demand_failover_for_errors == null ? [1] : [] # Include the block only if the value is "spot" and on_demand_failover_for_errors is not enabled
211211
content {
212212
resource_type = "spot-instances-request"
213213
tags = merge(

0 commit comments

Comments
 (0)