We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 806bf58 commit a9ab69eCopy full SHA for a9ab69e
modules/runners/main.tf
@@ -207,7 +207,7 @@ resource "aws_launch_template" "runner" {
207
}
208
209
dynamic "tag_specifications" {
210
- for_each = var.instance_target_capacity_type == "spot" ? 1 : 0
+ for_each = var.instance_target_capacity_type == "spot" ? [1] : [] # Include the block only if the value is "spot"
211
content {
212
resource_type = "spot-instances-request"
213
tags = merge(
0 commit comments