Making kubeconfig file path and generated config unique

This commit is contained in:
Max Williams
2018-07-06 12:11:48 +02:00
parent 186572d7f4
commit fac9bc8db1
2 changed files with 9 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
resource "local_file" "kubeconfig" {
content = "${data.template_file.kubeconfig.rendered}"
filename = "${var.config_output_path}/kubeconfig"
filename = "${var.config_output_path}/kubeconfig_eks_${data.aws_region.current.name}_${var.cluster_name}"
count = "${var.configure_kubectl_session ? 1 : 0}"
}