mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 16:47:20 +01: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:
@@ -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
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user