output empty string when cluster identity is empty (#516)

This commit is contained in:
Thierno IB. BARRY
2019-09-18 16:43:01 +02:00
committed by Max Williams
parent bf8c324761
commit b6125b8501

View File

@@ -45,7 +45,7 @@ output "cluster_iam_role_arn" {
output "cluster_oidc_issuer_url" {
description = "The URL on the EKS cluster OIDC Issuer"
value = aws_eks_cluster.this.identity.0.oidc.0.issuer
value = concat(aws_eks_cluster.this.identity.*.oidc.0.issuer, [""])[0]
}
output "cloudwatch_log_group_name" {