mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-31 06:23:04 +02:00
improvement: Remove dependency on external template provider (#854)
* 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
This commit is contained in:
@@ -60,7 +60,7 @@ output "cloudwatch_log_group_name" {
|
||||
|
||||
output "kubeconfig" {
|
||||
description = "kubectl config file contents for this EKS cluster."
|
||||
value = concat(data.template_file.kubeconfig[*].rendered, [""])[0]
|
||||
value = local.kubeconfig
|
||||
}
|
||||
|
||||
output "kubeconfig_filename" {
|
||||
@@ -92,8 +92,8 @@ output "workers_asg_names" {
|
||||
output "workers_user_data" {
|
||||
description = "User data of worker groups"
|
||||
value = concat(
|
||||
data.template_file.userdata.*.rendered,
|
||||
data.template_file.launch_template_userdata.*.rendered,
|
||||
local.userdata,
|
||||
local.launch_template_userdata,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user