From b6125b8501e8e0b4f0c070b1e52daa84395aa032 Mon Sep 17 00:00:00 2001 From: "Thierno IB. BARRY" Date: Wed, 18 Sep 2019 16:43:01 +0200 Subject: [PATCH] output empty string when cluster identity is empty (#516) --- outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outputs.tf b/outputs.tf index 24a3949b..3a69d502 100644 --- a/outputs.tf +++ b/outputs.tf @@ -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" {