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

@@ -79,7 +79,7 @@ variable "vpc_id" {
}
variable "worker_groups" {
description = "A list of maps defining worker group configurations. See workers_group_defaults for valid keys."
description = "A list of maps defining worker group configurations to be defined using AWS Launch Configurations. See workers_group_defaults for valid keys."
type = "list"
default = [{
@@ -99,6 +99,27 @@ variable "workers_group_defaults" {
default = {}
}
variable "worker_groups_launch_template" {
description = "A list of maps defining worker group configurations to be defined using AWS Launch Templates. See workers_group_defaults for valid keys."
type = "list"
default = [{
"name" = "default"
}]
}
variable "worker_group_launch_template_count" {
description = "The number of maps contained within the worker_groups_launch_template list."
type = "string"
default = "0"
}
variable "workers_group_launch_template_defaults" {
description = "Override default values for target groups. See workers_group_defaults_defaults in locals.tf for valid keys."
type = "map"
default = {}
}
variable "worker_security_group_id" {
description = "If provided, all workers will be attached to this security group. If not given, a security group will be created with necessary ingres/egress to work with the EKS cluster."
default = ""