mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-28 12:11:48 +01:00
Use launch template defaults for launch template userdata (#255)
* User launch template defaults for launch template userdata * Updated changelog
This commit is contained in:
committed by
Max Williams
parent
8473c69f25
commit
dfd5a8f808
@@ -16,6 +16,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
##### Changed
|
##### Changed
|
||||||
|
|
||||||
- Change worker group ASG to use create_before_destroy (by @stefansedich)
|
- Change worker group ASG to use create_before_destroy (by @stefansedich)
|
||||||
|
- Fixed a bug where worker group defaults were being used for launch template user data (by @leonsodhi-lf)
|
||||||
|
|
||||||
# History
|
# History
|
||||||
|
|
||||||
|
|||||||
6
data.tf
6
data.tf
@@ -91,8 +91,8 @@ data "template_file" "launch_template_userdata" {
|
|||||||
cluster_name = "${aws_eks_cluster.this.name}"
|
cluster_name = "${aws_eks_cluster.this.name}"
|
||||||
endpoint = "${aws_eks_cluster.this.endpoint}"
|
endpoint = "${aws_eks_cluster.this.endpoint}"
|
||||||
cluster_auth_base64 = "${aws_eks_cluster.this.certificate_authority.0.data}"
|
cluster_auth_base64 = "${aws_eks_cluster.this.certificate_authority.0.data}"
|
||||||
pre_userdata = "${lookup(var.worker_groups_launch_template[count.index], "pre_userdata", local.workers_group_defaults["pre_userdata"])}"
|
pre_userdata = "${lookup(var.worker_groups_launch_template[count.index], "pre_userdata", local.workers_group_launch_template_defaults["pre_userdata"])}"
|
||||||
additional_userdata = "${lookup(var.worker_groups_launch_template[count.index], "additional_userdata", local.workers_group_defaults["additional_userdata"])}"
|
additional_userdata = "${lookup(var.worker_groups_launch_template[count.index], "additional_userdata", local.workers_group_launch_template_defaults["additional_userdata"])}"
|
||||||
kubelet_extra_args = "${lookup(var.worker_groups_launch_template[count.index], "kubelet_extra_args", local.workers_group_defaults["kubelet_extra_args"])}"
|
kubelet_extra_args = "${lookup(var.worker_groups_launch_template[count.index], "kubelet_extra_args", local.workers_group_launch_template_defaults["kubelet_extra_args"])}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user