mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-21 08:11:17 +02:00
feat: Add node_iam_role_arns local variable to check for Windows platform on EKS managed nodegroups (#2477)
Update node_iam_role_arns locals to check for Windows Managed Node Groups Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
This commit is contained in:
3
main.tf
3
main.tf
@@ -469,7 +469,7 @@ locals {
|
||||
node_iam_role_arns_non_windows = distinct(
|
||||
compact(
|
||||
concat(
|
||||
[for group in module.eks_managed_node_group : group.iam_role_arn],
|
||||
[for group in module.eks_managed_node_group : group.iam_role_arn if group.platform != "windows"],
|
||||
[for group in module.self_managed_node_group : group.iam_role_arn if group.platform != "windows"],
|
||||
var.aws_auth_node_iam_role_arns_non_windows,
|
||||
)
|
||||
@@ -479,6 +479,7 @@ locals {
|
||||
node_iam_role_arns_windows = distinct(
|
||||
compact(
|
||||
concat(
|
||||
[for group in module.eks_managed_node_group : group.iam_role_arn if group.platform == "windows"],
|
||||
[for group in module.self_managed_node_group : group.iam_role_arn if group.platform == "windows"],
|
||||
var.aws_auth_node_iam_role_arns_windows,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user