diff --git a/modules/eks-managed-node-group/main.tf b/modules/eks-managed-node-group/main.tf index 1d3fe81698b..035b428d6cf 100644 --- a/modules/eks-managed-node-group/main.tf +++ b/modules/eks-managed-node-group/main.tf @@ -170,6 +170,8 @@ resource "aws_launch_template" "this" { } } + instance_type = var.instance_type + # # Set on node group instead # instance_type = var.launch_template_instance_type kernel_id = var.kernel_id diff --git a/modules/eks-managed-node-group/variables.tf b/modules/eks-managed-node-group/variables.tf index 197cd28c958..161d9407500 100644 --- a/modules/eks-managed-node-group/variables.tf +++ b/modules/eks-managed-node-group/variables.tf @@ -222,6 +222,12 @@ variable "instance_market_options" { default = {} } +variable "instance_type" { + description = "Set of instance type associated with the Launch Template. Conflicts with `instance_types`" + type = string + default = null +} + variable "maintenance_options" { description = "The maintenance options for the instance" type = any @@ -351,7 +357,7 @@ variable "force_update_version" { } variable "instance_types" { - description = "Set of instance types associated with the EKS Node Group. Defaults to `[\"t3.medium\"]`" + description = "Set of instance types associated with the EKS Node Group. Defaults to `[\"t3.medium\"]`. Conflicts with `instance_types`" type = list(string) default = null }