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

Add destroy-time flag

This commit is contained in:
syst0m
2019-10-31 16:27:03 +00:00
parent 55ff38cc31
commit c89da3772e
7 changed files with 41 additions and 34 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
resource "local_file" "kubeconfig" {
count = var.write_kubeconfig ? 1 : 0
count = var.write_kubeconfig && local.enabled ? 1 : 0
content = data.template_file.kubeconfig.rendered
filename = "${substr(var.config_output_path, -1, 1) == "/" ? "${var.config_output_path}kubeconfig_${var.cluster_name}" : var.config_output_path}"
}