forked from squareops/terraform-aws-eks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
222 lines (186 loc) · 5.54 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
variable "environment" {
description = "Environment identifier for the EKS cluster, such as dev, qa, prod, etc."
default = ""
type = string
}
variable "name" {
description = "Specify the name of the EKS cluster."
default = ""
type = string
}
variable "cluster_version" {
description = "Specifies the Kubernetes version (major.minor) to use for the EKS cluster."
default = ""
type = string
}
variable "cluster_endpoint_public_access" {
description = "Whether the Amazon EKS public API server endpoint is enabled or not."
default = true
type = bool
}
variable "cluster_endpoint_public_access_cidrs" {
description = "CIDR blocks that can access the Amazon EKS public API server endpoint."
default = [""]
type = list(string)
}
variable "vpc_id" {
description = "ID of the VPC where the EKS cluster will be deployed."
default = ""
type = string
}
variable "kms_key_arn" {
description = "ARN of the KMS key used to encrypt EKS resources."
default = ""
type = string
}
variable "cluster_log_types" {
description = "A list of desired control plane logs to enable for the EKS cluster. Valid values include: api, audit, authenticator, controllerManager, scheduler."
default = [""]
type = list(string)
}
variable "cluster_log_retention_in_days" {
description = "Retention period for EKS cluster logs in days. Default is set to 90 days."
default = 90
type = number
}
variable "private_subnet_ids" {
description = "Private subnets of the VPC which can be used by EKS"
default = [""]
type = list(string)
}
variable "create_kms_key" {
description = "Controls if a KMS key for cluster encryption should be created"
type = bool
default = false
}
variable "additional_rules" {
description = "List of additional security group rules to add to the cluster security group created."
type = any
default = {}
}
variable "create_aws_auth_configmap" {
description = "Determines whether to manage the aws-auth configmap"
default = false
type = bool
}
variable "aws_auth_users" {
description = "List of user maps to add to the aws-auth configmap"
type = any
default = []
}
variable "aws_auth_roles" {
description = "List of role maps to add to the aws-auth configmap"
type = list(any)
default = []
}
variable "ipv6_enabled" {
description = "Enable cluster IP family as Ipv6"
type = bool
default = false
}
variable "default_addon_enabled" {
description = "Enable deafult addons(vpc-cni, ebs-csi) at the time of cluster creation"
type = bool
default = false
}
variable "eks_nodes_keypair_name" {
description = "The public key to be used for EKS cluster worker nodes."
type = string
default = ""
}
variable "eks_cluster_name" {
description = "Name of EKS cluster"
type = string
default = ""
}
variable "instance_types" {
description = "The instance types to be used for the EKS node group (e.g., t2.medium)."
type = list(any)
default = ["t3a.medium"]
}
variable "capacity_type" {
description = "The capacity type for the EKS node group (ON_DEMAND or SPOT)."
type = string
default = "ON_DEMAND"
}
variable "image_high_threshold_percent" {
description = "The percentage of disk usage at which garbage collection should be triggered."
type = number
default = 60
}
variable "image_low_threshold_percent" {
description = "The percentage of disk usage at which garbage collection took place."
type = number
default = 40
}
variable "eventRecordQPS" {
description = "The maximum number of events created per second."
type = number
default = 5
}
variable "associate_public_ip_address" {
description = "Set to true to enable network interface for launch template."
type = bool
default = false
}
variable "enable_monitoring" {
description = "Specify whether to enable monitoring for nodes."
type = bool
default = true
}
variable "min_size" {
description = "The minimum number of nodes for the node group."
type = string
default = "1"
}
variable "max_size" {
description = "The maximum number of nodes that can be added to the node group."
type = string
default = "3"
}
variable "desired_size" {
description = "The desired number of nodes for the node group."
type = string
default = "1"
}
variable "ebs_volume_size" {
description = "The type of EBS volume for nodes."
type = string
default = "50"
}
variable "ebs_volume_type" {
description = "Specify the type of EBS volume for nodes."
type = string
default = "gp3"
}
variable "ebs_encrypted" {
description = "Specify whether to encrypt the EBS volume for nodes."
type = bool
default = true
}
variable "subnet_ids" {
description = "The IDs of the subnets in the VPC that can be used by EKS."
type = list(string)
default = [""]
}
variable "tags" {
description = "Tags to be applied to the node group."
type = any
default = {}
}
variable "k8s_labels" {
description = "Labels to be applied to the Kubernetes node groups."
type = map(any)
default = {}
}
#node group role
variable "worker_iam_role_arn" {
description = "The ARN of the worker role for EKS."
type = string
default = ""
}
variable "worker_iam_role_name" {
description = "The name of the EKS Worker IAM role."
type = string
default = ""
}