mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-19 07:19:38 +02:00
added support for specifying user data for the worker launch config that runs before anything else
This commit is contained in:
1
data.tf
1
data.tf
@@ -73,6 +73,7 @@ data template_file userdata {
|
||||
endpoint = "${aws_eks_cluster.this.endpoint}"
|
||||
cluster_auth_base64 = "${aws_eks_cluster.this.certificate_authority.0.data}"
|
||||
max_pod_count = "${lookup(local.max_pod_per_node, lookup(var.worker_groups[count.index], "instance_type", lookup(var.workers_group_defaults, "instance_type")))}"
|
||||
pre_userdata = "${lookup(var.worker_groups[count.index], "pre_userdata",lookup(var.workers_group_defaults, "pre_userdata"))}"
|
||||
additional_userdata = "${lookup(var.worker_groups[count.index], "additional_userdata",lookup(var.workers_group_defaults, "additional_userdata"))}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user