forked from umotif-public/terraform-aws-eks-node-group
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
132 lines (110 loc) · 4.25 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
variable "tags" {
description = "A map of tags (key-value pairs) passed to resources."
type = map(string)
default = {}
}
variable "cluster_name" {
type = string
description = "The name of the EKS cluster"
}
variable "ec2_ssh_key" {
type = string
description = "SSH key name that should be used to access the worker nodes"
default = null
}
variable "desired_size" {
type = number
description = "Desired number of worker nodes"
}
variable "max_size" {
type = number
description = "Maximum number of worker nodes"
}
variable "min_size" {
type = number
description = "Minimum number of worker nodes"
}
variable "subnet_ids" {
description = "A list of subnet IDs to launch resources in"
type = list(string)
}
variable "node_role_arn" {
type = string
description = "IAM role arn that will be used by managed node group"
default = ""
}
variable "ami_type" {
type = string
description = "Type of Amazon Machine Image (AMI) associated with the EKS Node Group. Valid values: `AL2_x86_64`, `AL2_x86_64_GPU`. Terraform will only perform drift detection if a configuration value is provided"
default = null
}
variable "disk_size" {
type = number
description = "Disk size in GiB for worker nodes. Defaults to 20. Terraform will only perform drift detection if a configuration value is provided"
default = null
}
variable "instance_types" {
type = list(string)
description = "List of instance types associated with the EKS Node Group. Terraform will only perform drift detection if a configuration value is provided"
default = null
}
variable "labels" {
type = map(string)
description = "Key-value mapping of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed"
default = {}
}
variable "ami_release_version" {
type = string
description = "AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version"
default = null
}
variable "kubernetes_version" {
type = string
description = "Kubernetes version. Defaults to EKS Cluster Kubernetes version. Terraform will only perform drift detection if a configuration value is provided"
default = null
}
variable "source_security_group_ids" {
type = list(string)
default = []
description = "Set of EC2 Security Group IDs to allow SSH access (port 22) from on the worker nodes. If you specify `ec2_ssh_key`, but do not specify this configuration when you create an EKS Node Group, port 22 on the worker nodes is opened to the Internet (0.0.0.0/0)"
}
variable "create_iam_role" {
type = bool
description = "Create IAM role for node group. Set to false if pass `node_role_arn` as an argument"
default = true
}
variable "node_group_name" {
type = string
description = "The name of the cluster node group. Defaults to <cluster_name>-<random value>"
default = null
}
variable "node_group_name_prefix" {
type = string
description = "Creates a unique name beginning with the specified prefix. Conflicts with node_group_name"
default = null
}
variable "node_group_role_name" {
type = string
description = "The name of the cluster node group role. Defaults to <cluster_name>-managed-group-node"
default = ""
}
variable "force_update_version" {
type = bool
description = "Force version update if existing pods are unable to be drained due to a pod disruption budget issue."
default = false
}
variable "launch_template" {
type = map(string)
description = "Configuration block with Launch Template settings. `name`, `id` and `version` parameters are available."
default = {}
}
variable "capacity_type" {
type = string
description = "Type of capacity associated with the EKS Node Group. Defaults to ON_DEMAND. Valid values: ON_DEMAND, SPOT."
default = "ON_DEMAND"
}
variable "taints" {
type = list(object({ key = string, value = any, effect = string }))
description = "List of objects containing Kubernetes taints which will be applied to the nodes in the node group. Maximum of 50 taints per node group."
default = []
}