Fix launch template market option expansion (#508)

* Fix launch template market option expansion

* Update changelog
This commit is contained in:
Tomas Ostasevicius
2019-09-16 11:32:39 +02:00
committed by Max Williams
parent f88220a8eb
commit 4f4d9c304d
2 changed files with 3 additions and 3 deletions

View File

@@ -30,8 +30,9 @@ project adheres to [Semantic Versioning](http://semver.org/).
- Fixed errors sometimes happening during destroy due to usage of coalesce() in local.tf (by @petrikero)
- Removed historical mention of adding caller's IPv4 to cluster security group (by @dpiddockcmp)
- Wrapped `kubelet_extra_args` in double quotes instead of singe quotes (by @nxf5025)
- Write your awesome change here (by @you)
- Make terraform plan more consistent and avoid unnecessary "(known after apply)" (by @barryib)
- Made sure that `market_type` was correctly passed to `workers_launch_template` (by @to266)
- Write your awesome change here (by @you)
# History

View File

@@ -316,10 +316,9 @@ 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
market_type = instance_market_options.value
}
}