mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-19 10:08:00 +01:00
remove empty [] to mapRoles in aws-auth (revised) (#619)
This commit is contained in:
@@ -53,7 +53,7 @@ resource "kubernetes_config_map" "aws_auth" {
|
||||
data = {
|
||||
mapRoles = <<EOF
|
||||
${join("", distinct(concat(data.template_file.launch_template_worker_role_arns.*.rendered, data.template_file.worker_role_arns.*.rendered)))}
|
||||
%{if var.map_roles == []}${yamlencode(var.map_roles)}%{endif}
|
||||
%{if length(var.map_roles) != 0}${yamlencode(var.map_roles)}%{endif}
|
||||
EOF
|
||||
mapUsers = yamlencode(var.map_users)
|
||||
mapAccounts = yamlencode(var.map_accounts)
|
||||
|
||||
Reference in New Issue
Block a user