1
0
mirror of https://github.com/terraform-aws-modules/terraform-aws-eks.git synced 2025-09-09 19:32:58 +08:00

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
+6 -4
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
]
}