We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1f2893 commit 11f7777Copy full SHA for 11f7777
main.tf
@@ -226,8 +226,11 @@ resource "aws_launch_template" "gitlab_runner_instance" {
226
for_each = var.runner_instance_spot_price == null || var.runner_instance_spot_price == "" ? [] : ["spot"]
227
content {
228
market_type = instance_market_options.value
229
- spot_options {
230
- max_price = var.runner_instance_spot_price == "on-demand-price" ? "" : var.runner_instance_spot_price
+ dynamic "spot_options" {
+ for_each = var.runner_instance_spot_price == "on-demand-price" ? [] : [0]
231
+ content {
232
+ max_price = var.runner_instance_spot_price
233
+ }
234
}
235
236
0 commit comments