|
| 1 | +variable "cluster_name" { |
| 2 | + description = "The name of the EKS cluster." |
| 3 | + type = string |
| 4 | +} |
| 5 | + |
| 6 | +variable "cluster_version" { |
| 7 | + description = "The Kubernetes server version for the EKS cluster." |
| 8 | + type = string |
| 9 | + default = "1.28" |
| 10 | +} |
| 11 | + |
| 12 | +variable "auth_users" { |
| 13 | + description = "The list of users to add to the aws-auth configmap." |
| 14 | + type = list(object({ |
| 15 | + userarn = string |
| 16 | + username = string |
| 17 | + groups = list(string) |
| 18 | + })) |
| 19 | + default = [] |
| 20 | +} |
| 21 | + |
| 22 | +variable "ssh_key_name" { |
| 23 | + description = "The name of the SSH keypair to use for the bastion host." |
| 24 | + type = string |
| 25 | + default = "sandbox_key" |
| 26 | +} |
| 27 | + |
| 28 | +variable "region" { |
| 29 | + description = "The region in which to create the EKS cluster." |
| 30 | + type = string |
| 31 | + default = "us-east-1" |
| 32 | +} |
| 33 | + |
| 34 | +variable "vpc_id" { |
| 35 | + description = "The VPC ID in which to create the EKS cluster." |
| 36 | + type = string |
| 37 | +} |
| 38 | + |
| 39 | +variable "vpc_subnet_ids" { |
| 40 | + description = "The subnet IDs in which to create the EKS cluster." |
| 41 | + type = list(string) |
| 42 | +} |
| 43 | + |
| 44 | +variable "vpc_default_security_group_ids" { |
| 45 | + description = "The ID of the default security group for the VPC." |
| 46 | + type = list(string) |
| 47 | + default = [] |
| 48 | +} |
| 49 | + |
| 50 | +variable "vpc_controlplane_subnet_ids" { |
| 51 | + description = "The intra subnet IDs in which to create the EKS cluster." |
| 52 | + type = list(string) |
| 53 | +} |
| 54 | + |
| 55 | +variable "default_tags" { |
| 56 | + description = "The tags to apply to all resources in the module." |
| 57 | + type = map(string) |
| 58 | + default = { |
| 59 | + Terraform = "true" |
| 60 | + Environment = "sandbox" |
| 61 | + } |
| 62 | +} |
| 63 | + |
| 64 | +variable "node_instance_types" { |
| 65 | + description = "The instance types for the default node group." |
| 66 | + type = list(string) |
| 67 | + default = ["t3.medium"] |
| 68 | +} |
| 69 | + |
| 70 | +variable "node_min_size" { |
| 71 | + description = "The minimum number of nodes." |
| 72 | + type = number |
| 73 | + default = 1 |
| 74 | +} |
| 75 | + |
| 76 | +variable "node_max_size" { |
| 77 | + description = "The maximum number of nodes." |
| 78 | + type = number |
| 79 | + default = 3 |
| 80 | +} |
| 81 | + |
| 82 | +variable "node_desired_size" { |
| 83 | + description = "The desired number of nodes." |
| 84 | + type = number |
| 85 | + default = 1 |
| 86 | +} |
| 87 | + |
| 88 | +variable "enable_gpu_nodes" { |
| 89 | + description = "Whether to enable GPU nodes." |
| 90 | + type = bool |
| 91 | + default = false |
| 92 | +} |
| 93 | + |
| 94 | +variable "gpu_node_instance_types" { |
| 95 | + description = "The instance types for the default GPU node group." |
| 96 | + type = list(string) |
| 97 | + default = ["g4dn.xlarge"] |
| 98 | +} |
| 99 | + |
| 100 | +variable "gpu_min_nodes" { |
| 101 | + description = "The minimum number of GPU nodes." |
| 102 | + type = number |
| 103 | + default = 0 |
| 104 | +} |
| 105 | + |
| 106 | +variable "gpu_max_nodes" { |
| 107 | + description = "The maximum number of GPU nodes." |
| 108 | + type = number |
| 109 | + default = 3 |
| 110 | +} |
| 111 | + |
| 112 | +variable "gpu_desired_nodes" { |
| 113 | + description = "The desired number of GPU nodes." |
| 114 | + type = number |
| 115 | + default = 0 |
| 116 | +} |
| 117 | + |
| 118 | +variable "karpenter_enable" { |
| 119 | + description = "Whether to enable Karpenter." |
| 120 | + type = bool |
| 121 | + default = false |
| 122 | +} |
| 123 | + |
| 124 | +variable "karpenter_role_arn" { |
| 125 | + description = "The ARN of the IAM role for Karpenter." |
| 126 | + type = string |
| 127 | + default = "" |
| 128 | +} |
| 129 | + |
| 130 | +variable "enable_monitoring" { |
| 131 | + description = "Whether to enable monitoring." |
| 132 | + type = bool |
| 133 | + default = false |
| 134 | +} |
0 commit comments