From 3481bb9976ecab64b478b8e80e8d3df3d6779799 Mon Sep 17 00:00:00 2001 From: syst0m Date: Tue, 5 Nov 2019 15:58:07 +0000 Subject: [PATCH] Fix outputs --- outputs.tf | 2 +- workers_launch_template.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/outputs.tf b/outputs.tf index 82ac9366..82a7cd99 100644 --- a/outputs.tf +++ b/outputs.tf @@ -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" { diff --git a/workers_launch_template.tf b/workers_launch_template.tf index 5ed29124..9157dc63 100644 --- a/workers_launch_template.tf +++ b/workers_launch_template.tf @@ -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],