diff --git a/infra/eks/_variables.tf b/infra/eks/_variables.tf index b2a35e7..7fea446 100644 --- a/infra/eks/_variables.tf +++ b/infra/eks/_variables.tf @@ -22,10 +22,10 @@ variable "alb_public_subnet_ids" { type = list(string) } -# variable "instance_type" { -# type = string -# default = "t2.micro" -# } +variable "instance_type" { + type = string + default = "t2.micro" +} # variable "desired_capacity" { # type = number diff --git a/infra/eks/cluster.tf b/infra/eks/cluster.tf index a575d0d..70c8a7d 100644 --- a/infra/eks/cluster.tf +++ b/infra/eks/cluster.tf @@ -11,7 +11,7 @@ module "eks" { # This config maps to an Auto Scaling Group under the hood eks_managed_node_groups = { default = { - instance_types = ["var.instance_type"] + instance_types = [var.instance_type] desired_size = 1 min_size = 1 max_size = 2