mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-19 07:53:46 +01:00
added market options to request spot instances without pools (#409)
* added market options to request spot instances without specifying pools in a launch template * formatted * simplified implementation * formatted * Update CHANGELOG.md
This commit is contained in:
@@ -229,6 +229,14 @@ resource "aws_launch_template" "workers_launch_template" {
|
||||
)
|
||||
}
|
||||
|
||||
instance_market_options {
|
||||
market_type = lookup(
|
||||
var.worker_groups_launch_template[count.index],
|
||||
"market_type",
|
||||
local.workers_group_defaults["market_type"],
|
||||
)
|
||||
}
|
||||
|
||||
block_device_mappings {
|
||||
device_name = lookup(
|
||||
var.worker_groups_launch_template[count.index],
|
||||
|
||||
Reference in New Issue
Block a user