platform-infra/terraform/modules/eks/main.tf

16 lines
461 B
HCL

variable "cluster_name" {}
variable "cluster_version" { default = "1.30" }
variable "subnet_ids" { type = list(string) }
variable "node_type" { default = "m6i.xlarge" }
variable "min_nodes" { default = 2 }
variable "max_nodes" { default = 8 }
resource "aws_eks_cluster" "main" {
name = var.cluster_name
version = var.cluster_version
role_arn = aws_iam_role.cluster.arn
vpc_config {
subnet_ids = var.subnet_ids
}
}