diff --git a/infrastructure/modules/eks/variables.tf b/infrastructure/modules/eks/variables.tf index 8f29ec0..046dd88 100644 --- a/infrastructure/modules/eks/variables.tf +++ b/infrastructure/modules/eks/variables.tf @@ -60,6 +60,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