mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 16:47:20 +01:00
7 lines
282 B
HCL
7 lines
282 B
HCL
resource "local_file" "kubeconfig" {
|
|
count = var.write_kubeconfig ? 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}"
|
|
}
|
|
|