-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvariables.tf
69 lines (58 loc) · 1.64 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
variable "enabled_cluster_log_types" {
type = list(string)
default = []
description = "Which EKS control plane log types to enable"
}
variable "endpoint_private_access" {
type = bool
description = "Enables the Amazon EKS private API server endpoint."
default = false
}
variable "endpoint_public_access" {
type = bool
description = "Enables the Amazon EKS public API server endpoint."
default = true
}
variable "k8s_version" {
type = string
description = "Kubernetes version to deploy"
}
variable "log_retention_in_days" {
type = number
description = "How many days until control plane logs are purged"
default = 7
}
variable "name" {
type = string
description = "Name for this EKS cluster"
}
variable "namespace" {
type = list(string)
description = "Prefix to be applied to created resources"
default = []
}
variable "node_groups" {
description = "Node groups to create in this cluster"
type = map(object({
capacity_type = optional(string, "ON_DEMAND")
instance_types = list(string),
max_size = number
max_unavailable = optional(number, 3)
min_size = number
}))
}
variable "tags" {
type = map(string)
description = "Tags to be applied to all created resources"
default = {}
}
variable "labels" {
type = map(string)
description = "Labels to be applied to created resources"
default = {}
}
variable "user_data" {
type = map(string)
description = "Optional user data script for the launch template"
default = {} # Default to an empty string if no user data is provided
}