-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
26 lines (26 loc) · 992 Bytes
/
Copy pathvariables.tf
File metadata and controls
26 lines (26 loc) · 992 Bytes
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
variable "cluster_name" { type = string }
variable "cluster_version" { type = string; default = "1.29" }
variable "vpc_id" { type = string }
variable "subnet_ids" { type = list(string) }
variable "endpoint_private_access" { type = bool; default = true }
variable "endpoint_public_access" { type = bool; default = true }
variable "public_access_cidrs" { type = list(string); default = ["0.0.0.0/0"] }
variable "enabled_log_types" { type = list(string); default = ["api", "audit", "authenticator"] }
variable "node_groups" {
type = map(object({
instance_types = list(string)
desired_size = number
max_size = number
min_size = number
capacity_type = optional(string, "ON_DEMAND")
disk_size = optional(number, 20)
labels = optional(map(string), {})
}))
default = {
default = {
instance_types = ["t3.medium"]
desired_size = 2; max_size = 4; min_size = 1
}
}
}
variable "tags" { type = map(string); default = {} }