From 43101979ef139bc7e4d57844bb933f62dd528330 Mon Sep 17 00:00:00 2001 From: huddy Date: Thu, 12 Nov 2020 08:48:53 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Don=E2=80=99t=20add=20empty=20Roles=20AR?= =?UTF-8?q?N=20in=20aws-auth=20configmap,=20specifically=20when=20no=20Far?= =?UTF-8?q?gate=20profiles=20are=20specified=20(#1096)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/fargate/outputs.tf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/fargate/outputs.tf b/modules/fargate/outputs.tf index b4a1631..126ba6e 100644 --- a/modules/fargate/outputs.tf +++ b/modules/fargate/outputs.tf @@ -20,8 +20,10 @@ output "iam_role_arn" { output "aws_auth_roles" { description = "Roles for use in aws-auth ConfigMap" - value = [{ - worker_role_arn = local.pod_execution_role_arn - platform = "fargate" - }] + value = [ + for i in range(1) : { + worker_role_arn = local.pod_execution_role_arn + platform = "fargate" + } if local.create_eks + ] }