From 36d1b5afa5847193bd5205c09622da9f70b76eba Mon Sep 17 00:00:00 2001 From: keznikl Date: Thu, 23 Apr 2020 16:57:58 +0200 Subject: [PATCH] fix: Wrap `local.configmap_roles.groups` with tolist() to avoid panic (#846) --- aws_auth.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aws_auth.tf b/aws_auth.tf index e2aac0e..db6dea4 100644 --- a/aws_auth.tf +++ b/aws_auth.tf @@ -48,13 +48,13 @@ locals { { rolearn = role["worker_role_arn"] username = "system:node:{{EC2PrivateDNSName}}" - groups = concat( + groups = tolist(concat( [ "system:bootstrappers", "system:nodes", ], role["platform"] == "windows" ? ["eks:kube-proxy-windows"] : [] - ) + )) } ] }