Skip to content

Commit ab8b15f

Browse files
pwo3npalm
authored andcommitted
fix: handle enable_on_demand_failover_for_errors default value
1 parent d9d6373 commit ab8b15f

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
@@ -211,7 +211,7 @@ resource "aws_launch_template" "runner" {
211211
# Additionally, tagging spot requests via the CreateFleetCommand in the Lambda function does not work as expected,
212212
# so we rely on Terraform to manage these tags only when spot is exclusively used without on-demand failover.
213213
dynamic "tag_specifications" {
214-
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
214+
for_each = var.instance_target_capacity_type == "spot" && length(var.enable_on_demand_failover_for_errors) == 0 ? [1] : [] # Include the block only if the value is "spot" and on_demand_failover_for_errors is not enabled
215215
content {
216216
resource_type = "spot-instances-request"
217217
tags = merge(

0 commit comments

Comments
 (0)