-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvariables.tf
132 lines (111 loc) · 3.25 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
variable "eks_cluster_name" {
type = string
default = "eks"
description = "Name for the EKS Cluster"
}
variable "aws_region" {
type = string
description = "Region to deploy EKS Cluster into"
default = "us-east-1"
}
variable "eks_cluster_version" {
type = string
description = "Kubernetes version for the EKS cluster"
default = "1.29"
}
variable "eks_users" {
description = "Additional AWS users to add to the EKS aws-auth configmap."
type = list(object({
userarn = string
username = string
groups = list(string)
}))
default = []
}
# EKS autoscaling
variable "eks_autoscaling_group_linux_min_size" {
description = "Minimum number of Linux nodes for the EKS."
default = 2
type = number
}
variable "eks_autoscaling_group_linux_desired_capacity" {
description = "Desired capacity for Linux nodes for the EKS."
default = 2
type = number
}
variable "eks_autoscaling_group_linux_max_size" {
description = "Maximum number of Linux nodes for the EKS."
default = 3
type = number
}
variable "eks_linux_instance_type" {
description = "Instance size for EKS worker nodes."
default = "m5.large"
type = string
}
# EKS autoscaling for windows
variable "eks_autoscaling_group_windows_min_size" {
description = "Minimum number of Windows nodes for the EKS"
default = 2
type = number
}
variable "eks_autoscaling_group_windows_desired_capacity" {
description = "Desired capacity for Windows nodes for the EKS."
default = 2
type = number
}
variable "eks_autoscaling_group_windows_max_size" {
description = "Maximum number of Windows nodes for the EKS."
default = 3
type = number
}
variable "eks_windows_instance_type" {
description = "Instance size for EKS windows worker nodes."
default = "t3.medium"
type = string
}
variable "external_dns_support" {
type = bool
description = "Setup IAM, service accounts and cluster role for external_dns in EKS"
default = false
}
variable "enable_metrics_server" {
type = bool
description = "Install metrics server into the cluster"
default = true
}
variable "enable_cluster_autoscaler" {
type = bool
description = "Enable cluster autoscaler"
default = true
}
variable "enable_cloudwatch_exported" {
type = bool
description = "Enable cloudwatch exporter"
default = true
}
variable "enable_loadbalancer_controler" {
type = bool
description = "Enable ALB load Balancer controller"
default = true
}
variable "windows_ami_type" {
description = "AMI type for the Windows Nodes."
default = "WINDOWS_CORE_2022_x86_64"
type = string
}
variable "enable_calico_network_polices" {
type = bool
description = "Installs and enables calico for netowrk policies"
default = false
}
variable "vpc_cidr_private_subnets" {
type = list(string)
description = "private subnets in the main CIDR block for the VPC."
default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
}
variable "vpc_cidr_public_subnets" {
type = list(string)
description = "private subnets in the main CIDR block for the VPC."
default = ["10.0.4.0/24", "10.0.5.0/24", "10.0.6.0/24"]
}