Allow launch template spot instances without mixed policy (#463)

* Add option to enable spot without MixedInstancePolicy

* Update docs
This commit is contained in:
Tarek Abdel Sater
2019-08-06 19:18:06 +03:00
committed by Max Williams
parent c9986f5e01
commit fb71eaf6ff
4 changed files with 22 additions and 0 deletions

View File

@@ -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],