mirror of
https://github.com/terraform-aws-modules/terraform-aws-eks.git
synced 2025-09-09 19:32:58 +08:00
b183b97253
* Remove template_file for generating kubeconfig Push logic from terraform down to the template. Makes the formatting slightly easier to follow * Remove template_file for generating userdata Updates to the eks_cluster now do not trigger recreation of launch configurations * Remove template_file for LT userdata * Remove template dependency
6 lines
272 B
Terraform
6 lines
272 B
Terraform
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
|
|
}
|