-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
74 lines (61 loc) · 1.58 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
variable "cluster_name" {
type = string
}
variable "public_subnet_ids" {
type = set(string)
default = []
# TODO validation: at least one subnet (public or private) is defined
}
variable "private_subnet_ids" {
type = set(string)
default = []
# TODO validation: at least one subnet (public or private) is defined
}
variable "additional_cluster_security_group_ids" {
type = set(string)
default = []
}
variable "cluster_role_name" {
type = string
default = "AmazonEKSAutoClusterRole"
}
variable "kubernetes_version" {
type = string
default = null
}
variable "support_type" {
type = string
default = "EXTENDED"
validation {
condition = contains(["STANDARD", "EXTENDED"], var.support_type)
error_message = "Support type must be STANDARD or EXTENDED"
}
}
variable "fargate_profiles" {
type = set(object({
name = string
pod_execution_role_name = optional(string)
subnet_ids = optional(set(string))
selectors = set(object({
namespace = string
labels = optional(map(string))
}))
}))
default = []
# TODO validation (needed?): make sure name is unique
# TODO validation: if subnet_ids not defined, at least one private subnet is define in var.private_subnet_ids
}
variable "node_groups" {
type = set(object({
name = string
subnet_ids = set(string)
scaling_config = object({
desired_size = number
max_size = number
min_size = number
})
node_role_name = optional(string)
}))
default = []
# TODO validation (needed?): make sure name is unique
}