mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-28 04:11:07 +01:00
Allow launch template spot instances without mixed policy (#463)
* Add option to enable spot without MixedInstancePolicy * Update docs
This commit is contained in:
committed by
Max Williams
parent
c9986f5e01
commit
fb71eaf6ff
@@ -229,6 +229,14 @@ resource "aws_launch_template" "workers_launch_template" {
|
||||
)
|
||||
}
|
||||
|
||||
dynamic instance_market_options {
|
||||
iterator = item
|
||||
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))
|
||||
content {
|
||||
market_type = item.value
|
||||
}
|
||||
}
|
||||
|
||||
block_device_mappings {
|
||||
device_name = lookup(
|
||||
var.worker_groups_launch_template[count.index],
|
||||
|
||||
Reference in New Issue
Block a user