mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 08:37:18 +01:00
BREAKING CHANGES: The variable `config_output_path` is renamed into `kubeconfig_output_path` for naming consistency. Please upgrade your configuration accordingly. NOTES: The kubeconfig file permission is not world and group readable anymore. The default permission is now `600`. This value can be changed with the variable `var.kubeconfig_file_permission`.
8 lines
408 B
HCL
8 lines
408 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"
|
|
}
|