-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
184 lines (149 loc) · 3.3 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
variable "region" {
type = string
}
variable "vpc-id" {
type = string
}
variable "cluster-name" {
type = string
}
variable "eks-version" {
type = string
}
variable "nodes-version" {
type = string
default = ""
}
variable "primary-instance-type" {
type = string
default = ""
}
variable "cluster-subnets-ids" {
type = list(string)
}
variable "primary-node-subnets-ids" {
type = list(string)
default = []
}
variable "spot-node-subnets-ids" {
type = list(string)
default = []
}
variable "spot-instance-types" {
type = list(string)
default = []
}
variable "primary-nodes-count" {
type = string
default = "0"
}
variable "primary-max-nodes-count" {
type = string
default = "5"
}
variable "primary-min-nodes-count" {
type = string
default = "0"
}
variable "eks-additional-security-groups" {
type = list(string)
default = []
}
variable "nodes-additional-security-groups" {
type = list(string)
default = []
}
variable "enable-private-access" {
default = true
}
variable "enable-public-access" {
type = bool
default = false
}
variable "tags" {
type = map(string)
}
variable "enable-spot-instances" {
type = bool
default = false
}
variable "spot-nodes-count" {
type = number
description = "Desired size os spot instance node group"
default = 1
}
variable "spot-max-nodes-count" {
type = number
description = "Desired max size os spot instance node group"
default = 5
}
variable "spot-min-nodes-count" {
type = number
description = "Desired minimum size os spot instance node group"
default = 1
}
variable "enable-aws-auth" {
type = bool
description = "Needs to be enabled at Cluster creation and allows for the management of the aws_auth configmap for the EKS cluster."
default = false
}
variable "map-roles" {
type = map(list(string))
description = "Additional IAM roles to add to the aws-auth configmap. See readme for example format."
default = {}
}
variable "map-users" {
type = map(list(string))
description = "Additional IAM users to add to the aws-auth configmap. See readme for example format."
default = {}
}
variable "enable-primary-nodegroup" {
type = bool
default = false
}
variable "userdata-file" {
type = string
description = "userdata file path"
default = ""
}
variable "service_ipv4_cidr" {
type = string
}
variable "create_eks_addons" {
type = bool
description = "Enable EKS managed addons creation."
default = true
}
variable "eks_addon_version_kube_proxy" {
type = string
description = "Kube proxy managed EKS addon version."
default = ""
}
variable "eks_addon_version_core_dns" {
type = string
description = "Core DNS managed EKS addon version."
default = ""
}
variable "eks_addon_version_vpc_cni" {
type = string
description = "VPC-CNI managed EKS addon version."
default = ""
}
variable "enable_coredns_addon" {
type = bool
description = "Enable CoreDNS AddOn"
default = false
}
variable "enable_iam" {
type = bool
description = "Deploy IAM Roles in cluster creation."
default = true
}
variable "eks-masters-iam-role" {
type = string
default = ""
}
variable "eks-nodes-iam-role" {
type = string
default = ""
}