@@ -93,7 +93,7 @@ resource "aws_autoscaling_group" "workers_launch_template" {
93
93
local. workers_group_defaults [" health_check_grace_period" ]
94
94
)
95
95
96
- dynamic mixed_instances_policy {
96
+ dynamic " mixed_instances_policy" {
97
97
iterator = item
98
98
for_each = (lookup (var. worker_groups_launch_template [count . index ], " override_instance_types" , null ) != null ) || (lookup (var. worker_groups_launch_template [count . index ], " on_demand_allocation_strategy" , local. workers_group_defaults [" on_demand_allocation_strategy" ]) != null ) ? list (var. worker_groups_launch_template [count . index ]) : []
99
99
@@ -157,7 +157,7 @@ resource "aws_autoscaling_group" "workers_launch_template" {
157
157
}
158
158
}
159
159
160
- dynamic launch_template {
160
+ dynamic " launch_template" {
161
161
iterator = item
162
162
for_each = (lookup (var. worker_groups_launch_template [count . index ], " override_instance_types" , null ) != null ) || (lookup (var. worker_groups_launch_template [count . index ], " on_demand_allocation_strategy" , local. workers_group_defaults [" on_demand_allocation_strategy" ]) != null ) ? [] : list (var. worker_groups_launch_template [count . index ])
163
163
@@ -336,7 +336,7 @@ resource "aws_launch_template" "workers_launch_template" {
336
336
)
337
337
}
338
338
339
- dynamic placement {
339
+ dynamic " placement" {
340
340
for_each = lookup (var. worker_groups_launch_template [count . index ], " launch_template_placement_group" , local. workers_group_defaults [" launch_template_placement_group" ]) != null ? [lookup (var. worker_groups_launch_template [count . index ], " launch_template_placement_group" , local. workers_group_defaults [" launch_template_placement_group" ])] : []
341
341
342
342
content {
@@ -349,7 +349,7 @@ resource "aws_launch_template" "workers_launch_template" {
349
349
}
350
350
}
351
351
352
- dynamic instance_market_options {
352
+ dynamic " instance_market_options" {
353
353
for_each = lookup (var. worker_groups_launch_template [count . index ], " market_type" , null ) == null ? [] : list (lookup (var. worker_groups_launch_template [count . index ], " market_type" , null ))
354
354
content {
355
355
market_type = instance_market_options. value
0 commit comments