Fix PR merge: #606 (#611)

* Update aws_auth.tf

* aws-auth config map
This commit is contained in:
Shan K
2019-12-05 21:24:13 +05:30
committed by Max Williams
parent 9de5b53cb4
commit fb61b48c26
2 changed files with 2 additions and 1 deletions

View File

@@ -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 var.map_roles == []}${yamlencode(var.map_roles)}%{endif}
EOF
mapUsers = yamlencode(var.map_users)
mapAccounts = yamlencode(var.map_accounts)