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

Fix errors manifesting when used on an existing-cluster

This commit is contained in:
syst0m
2019-11-07 17:52:25 +00:00
parent a3009b1ecc
commit 880fd427a4
5 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
resource "local_file" "kubeconfig" {
count = var.write_kubeconfig && var.enabled ? 1 : 0
content = data.template_file.kubeconfig.rendered
content = data.template_file.kubeconfig[0].rendered
filename = "${substr(var.config_output_path, -1, 1) == "/" ? "${var.config_output_path}kubeconfig_${var.cluster_name}" : var.config_output_path}"
}