mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-14 12:59:37 +02:00
feat: Create kubeconfig with non-executable permissions (#864)
* Create kubeconfig with non-executable permissions Kubeconfig does not really need to be executable, so let's not create it with executable bit set. * Bump tf version
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
resource "local_file" "kubeconfig" {
|
||||
count = var.write_kubeconfig && var.create_eks ? 1 : 0
|
||||
content = local.kubeconfig
|
||||
filename = substr(var.config_output_path, -1, 1) == "/" ? "${var.config_output_path}kubeconfig_${var.cluster_name}" : var.config_output_path
|
||||
count = var.write_kubeconfig && var.create_eks ? 1 : 0
|
||||
content = local.kubeconfig
|
||||
filename = substr(var.config_output_path, -1, 1) == "/" ? "${var.config_output_path}kubeconfig_${var.cluster_name}" : var.config_output_path
|
||||
file_permission = "0644"
|
||||
directory_permission = "0755"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user