Skip to content

Commit 0d484b2

Browse files
committed
required for capacity block
1 parent 29230f9 commit 0d484b2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

main.tf

+9
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,15 @@ resource "aws_instance" "this" {
166166
}
167167
}
168168

169+
dynamic "instance_market_options" {
170+
for_each = length(var.instance_market_options) > 0 ? [var.instance_market_options] : []
171+
172+
content {
173+
market_type = try(instance_market_options.value.market_type, null)
174+
spot_options = try(instance_market_options.value.spot_options, null)
175+
}
176+
}
177+
169178
enclave_options {
170179
enabled = var.enclave_options_enabled
171180
}

0 commit comments

Comments
 (0)