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

Fix outputs

This commit is contained in:
syst0m
2019-11-05 15:58:07 +00:00
parent 52a1fbc6ef
commit 3481bb9976
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ output "cluster_certificate_authority_data" {
output "cluster_endpoint" {
description = "The endpoint for your EKS Kubernetes API."
value = element(concat(aws_eks_cluster.this.*.endpoint, list("")), 0)
value = element(concat(flatten(aws_eks_cluster.this[0].endpoint), list("")), 0)
}
output "cluster_version" {
+1 -1
View File
@@ -401,7 +401,7 @@ resource "random_pet" "workers_launch_template" {
}
resource "aws_iam_instance_profile" "workers_launch_template" {
count = var.manage_worker_iam_resources ? (local.worker_group_launch_template_count * var.enabled) : 0
count = var.manage_worker_iam_resources && var.enabled ? local.worker_group_launch_template_count : 0
name_prefix = aws_eks_cluster.this[count.index].name
role = lookup(
var.worker_groups_launch_template[count.index],