From b297592e51d2cb9a1a8f723fe3e632ac2d2ddc48 Mon Sep 17 00:00:00 2001 From: Nga <92612527+NgaNaNa@users.noreply.github.com> Date: Sat, 24 May 2025 15:51:08 +0930 Subject: [PATCH] fixes the reference to the instance_type --- infra/eks/_variables.tf | 8 ++++---- infra/eks/cluster.tf | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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