mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-27 03:41:05 +01:00
Allow config_output_path to specify the full path (#549)
This commit is contained in:
committed by
Max Williams
parent
c81e1d2fa7
commit
4369f0271b
@@ -1,6 +1,6 @@
|
||||
resource "local_file" "kubeconfig" {
|
||||
count = var.write_kubeconfig ? 1 : 0
|
||||
content = data.template_file.kubeconfig.rendered
|
||||
filename = "${var.config_output_path}kubeconfig_${var.cluster_name}"
|
||||
filename = "${substr(var.config_output_path, -1, 1) == "/" ? "${var.config_output_path}kubeconfig_${var.cluster_name}" : var.config_output_path}"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user