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

Fix cluster count

This commit is contained in:
syst0m
2019-10-31 17:49:36 +00:00
committed by Tomislav Tomasic
parent 75248e97df
commit 83eadaadf7
5 changed files with 42 additions and 42 deletions
+6 -6
View File
@@ -1,26 +1,26 @@
output "cluster_id" {
description = "The name/id of the EKS cluster."
value = aws_eks_cluster.this.id
value = element(concat(aws_eks_cluster.this.*.id, list("")), 0)
}
output "cluster_arn" {
description = "The Amazon Resource Name (ARN) of the cluster."
value = aws_eks_cluster.this.arn
value = element(concat(aws_eks_cluster.this.*.arn, list("")), 0)
}
output "cluster_certificate_authority_data" {
description = "Nested attribute containing certificate-authority-data for your cluster. This is the base64 encoded certificate data required to communicate with your cluster."
value = aws_eks_cluster.this.certificate_authority[0].data
value = element(concat(aws_eks_cluster.this.*.certificate_authority[0].data, list("")), 0)
}
output "cluster_endpoint" {
description = "The endpoint for your EKS Kubernetes API."
value = aws_eks_cluster.this.endpoint
value = element(concat(aws_eks_cluster.this.*.endpoint, list("")), 0)
}
output "cluster_version" {
description = "The Kubernetes server version for the EKS cluster."
value = aws_eks_cluster.this.version
value = element(concat(aws_eks_cluster.this.*.version, list("")), 0)
}
output "cluster_security_group_id" {
@@ -45,7 +45,7 @@ output "cluster_iam_role_arn" {
output "cluster_oidc_issuer_url" {
description = "The URL on the EKS cluster OIDC Issuer"
value = concat(aws_eks_cluster.this.identity.*.oidc.0.issuer, [""])[0]
value = concat(aws_eks_cluster.this.0.identity.*.oidc.0.issuer, [""])[0]
}
output "cloudwatch_log_group_name" {