fix: Don’t add empty Roles ARN in aws-auth configmap, specifically when no Fargate profiles are specified (#1096)

This commit is contained in:
huddy
2020-11-12 08:48:53 +00:00
committed by GitHub
parent 669736f71b
commit 43101979ef

View File

@@ -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
]
}