diff options
| author | Saumit <justsaumit@protonmail.com> | 2025-09-28 04:19:42 +0530 |
|---|---|---|
| committer | Saumit <justsaumit@protonmail.com> | 2025-09-28 04:19:42 +0530 |
| commit | c91e833ccba15a311e23cc21709cdefaf90b4398 (patch) | |
| tree | e3a78b5eb61673dc3ace1d97a88727dc49384b4e /astroshop-terraform/variables.tf | |
| parent | 44b0d2d9dea535d5580d78ae4a5082732639e2bf (diff) | |
eks: Add EKS cluster and node group configuration with IAM roles and policies
Diffstat (limited to 'astroshop-terraform/variables.tf')
| -rw-r--r-- | astroshop-terraform/variables.tf | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/astroshop-terraform/variables.tf b/astroshop-terraform/variables.tf index 37ae09c..54bca93 100644 --- a/astroshop-terraform/variables.tf +++ b/astroshop-terraform/variables.tf @@ -3,6 +3,7 @@ variable "region" { type = string default = "ap-south-1" } + variable "vpc_cidr" { description = "The CIDR block for the VPC" type = string @@ -31,4 +32,40 @@ variable "cluster_name" { description = "The name of the EKS cluster" type = string default = "astroshop-eks-cluster" +} + +variable "cluster_version" { + description = "The Kubernetes version for the EKS cluster" + type = string + default = "1.32" +} + +variable "public_access_cidrs" { + description = "List of CIDR blocks that can access the public API endpoint" + type = list(string) + default = [] +} + +variable "node_groups" { + description = "EKS node group configuration" + type = map(object({ + instance_types = list(string) + capacity_type = string + scaling_config = object({ + desired_size = number + max_size = number + min_size = number + }) + })) + default = { + general = { + instance_types = ["m7i-flex.large"] + capacity_type = "ON_DEMAND" + scaling_config = { + desired_size = 2 + max_size = 3 + min_size = 1 + } + } + } }
\ No newline at end of file |
