From 9de5b53cb486415d874fc5433a876a4e569e052a Mon Sep 17 00:00:00 2001 From: Shan K Date: Wed, 4 Dec 2019 23:16:44 +0530 Subject: [PATCH] remove empty [] to mapRoles object in aws-auth (#606) * remove empty [] to mapRoles object in aws-auth Simply having ${yamlencode(var.map_roles)} in mapRoles for aws-auth creates a empty [] at the end after adding the default roles. Changing it to be added only when its not empty * Update aws_auth.tf --- aws_auth.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws_auth.tf b/aws_auth.tf index 263ceab..9e9d48f 100644 --- a/aws_auth.tf +++ b/aws_auth.tf @@ -53,7 +53,7 @@ resource "kubernetes_config_map" "aws_auth" { data = { mapRoles = <