Skip to content

Commit 4f4d9c3

Browse files
to266max-rocket-internet
authored andcommitted
Fix launch template market option expansion (#508)
* Fix launch template market option expansion * Update changelog
1 parent f88220a commit 4f4d9c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

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

3637
# History
3738

workers_launch_template.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,9 @@ resource "aws_launch_template" "workers_launch_template" {
316316
}
317317

318318
dynamic instance_market_options {
319-
iterator = item
320319
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))
321320
content {
322-
market_type = item.value
321+
market_type = instance_market_options.value
323322
}
324323
}
325324

0 commit comments

Comments
 (0)