-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
37 lines (33 loc) · 1.22 KB
/
variables.tf
File metadata and controls
37 lines (33 loc) · 1.22 KB
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
variable "enable_auto_mode" {
type = bool
default = true
description = <<EOF
Enable EKS Auto Mode, which allows EKS to manage compute, storage, and load balancing for the cluster.
When enabled, EKS provisions and manages EC2 nodes automatically using the general-purpose node pool.
EOF
}
variable "kubernetes_version" {
type = string
default = "1.35"
description = <<EOF
Desired Kubernetes master version.
If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except those automatically triggered by EKS.
The value must be configured and increased to upgrade the version when desired.
Downgrades are not supported by EKS.
EOF
validation {
condition = can(regex("^[0-9]+\\.[0-9]+$", var.kubernetes_version))
error_message = "kubernetes_version must be in the format 'MAJOR.MINOR' (e.g. '1.35')."
}
}
variable "log_retention_in_days" {
type = number
default = 365
description = <<EOF
This defines the retention period for the CloudWatch logs for this Kubernetes cluster.
EOF
validation {
condition = var.log_retention_in_days >= 1
error_message = "log_retention_in_days must be at least 1 day"
}
}