Allows worker groups to be created using AWS Launch Templates (#222)

This commit is contained in:
skang0601
2019-01-10 09:19:19 -06:00
committed by Max Williams
parent 646831423a
commit f3ab7c67da
10 changed files with 218 additions and 14 deletions

View File

@@ -1,3 +1,5 @@
# Worker Groups using Launch Configurations
resource "aws_autoscaling_group" "workers" {
name_prefix = "${aws_eks_cluster.this.name}-${lookup(var.worker_groups[count.index], "name", count.index)}"
desired_capacity = "${lookup(var.worker_groups[count.index], "asg_desired_capacity", local.workers_group_defaults["asg_desired_capacity"])}"