mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 08:37:18 +01:00
9 lines
394 B
HCL
9 lines
394 B
HCL
resource "local_file" "kubeconfig" {
|
|
count = var.write_kubeconfig && var.create_eks ? 1 : 0
|
|
|
|
content = local.kubeconfig
|
|
filename = substr(var.kubeconfig_output_path, -1, 1) == "/" ? "${var.kubeconfig_output_path}kubeconfig_${var.cluster_name}" : var.kubeconfig_output_path
|
|
file_permission = var.kubeconfig_file_permission
|
|
directory_permission = "0755"
|
|
}
|