From 8d3a945b890fe8018a44fcf48a3ccd2bfe15f5d4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Feb 2026 05:43:10 +0000 Subject: [PATCH 1/2] Initial plan From 511dc303a0c2cbbad57affb30b66c0fa44992027 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Feb 2026 05:44:45 +0000 Subject: [PATCH 2/2] feat(eks): make kubernetes_version configurable via variable Co-authored-by: basebandit <8973567+basebandit@users.noreply.github.com> --- infrastructure/modules/eks/main.tf | 4 ++-- infrastructure/modules/eks/variables.tf | 6 ++++++ infrastructure/staging/eks.tf | 5 +++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/infrastructure/modules/eks/main.tf b/infrastructure/modules/eks/main.tf index 9d72408..1b824d0 100644 --- a/infrastructure/modules/eks/main.tf +++ b/infrastructure/modules/eks/main.tf @@ -2,8 +2,8 @@ module "eks" { source = "terraform-aws-modules/eks/aws" version = "21.14.0" - name = var.name - kubernetes_version = "1.32" + name = var.name + kubernetes_version = var.kubernetes_version # VPC Configuration vpc_id = var.vpc_id diff --git a/infrastructure/modules/eks/variables.tf b/infrastructure/modules/eks/variables.tf index 678fc39..4ec40cc 100644 --- a/infrastructure/modules/eks/variables.tf +++ b/infrastructure/modules/eks/variables.tf @@ -30,6 +30,12 @@ variable "environment" { type = string } +variable "kubernetes_version" { + description = "Kubernetes version for the EKS cluster" + type = string + default = "1.32" +} + variable "tags" { description = "Additional tags for all resources" type = map(string) diff --git a/infrastructure/staging/eks.tf b/infrastructure/staging/eks.tf index 24d6b00..d40cb02 100644 --- a/infrastructure/staging/eks.tf +++ b/infrastructure/staging/eks.tf @@ -1,8 +1,9 @@ module "eks" { source = "../modules/eks" - name = "${local.env}-${local.cluster_name}" - environment = local.env + name = "${local.env}-${local.cluster_name}" + environment = local.env + kubernetes_version = local.cluster_version vpc_id = module.vpc.vpc_id subnet_ids = module.vpc.private_subnets