mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-19 16:21:09 +01:00
feat: Define Root device name for Windows self-managed worker groups (#1401)
NOTES: Since we now search only for Linux or Windows AMI if there is a worker groups for the corresponding plateform, we can now define different default root block device name for each plateform. Use locals `root_block_device_name` and `root_block_device_name_windows` to define your owns.
This commit is contained in:
committed by
GitHub
parent
d7630ef632
commit
fcc2fdc993
@@ -438,7 +438,7 @@ resource "aws_launch_template" "workers_launch_template" {
|
||||
device_name = lookup(
|
||||
var.worker_groups_launch_template[count.index],
|
||||
"root_block_device_name",
|
||||
local.workers_group_defaults["root_block_device_name"],
|
||||
lookup(var.worker_groups_launch_template[count.index], "platform", local.workers_group_defaults["platform"]) == "windows" ? local.workers_group_defaults["root_block_device_name_windows"] : local.workers_group_defaults["root_block_device_name"],
|
||||
)
|
||||
|
||||
ebs {
|
||||
|
||||
Reference in New Issue
Block a user