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:
Onur Sam
2019-07-23 16:33:16 +01:00
committed by Max Williams
parent ec64a74019
commit a95ad00b0a
3 changed files with 10 additions and 0 deletions

View File

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