mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-30 14:11:58 +02: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" {
|
output "aws_auth_roles" {
|
||||||
description = "Roles for use in aws-auth ConfigMap"
|
description = "Roles for use in aws-auth ConfigMap"
|
||||||
value = [{
|
value = [
|
||||||
worker_role_arn = local.pod_execution_role_arn
|
for i in range(1) : {
|
||||||
platform = "fargate"
|
worker_role_arn = local.pod_execution_role_arn
|
||||||
}]
|
platform = "fargate"
|
||||||
|
} if local.create_eks
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user