This repository has been archived by the owner on Dec 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
194 lines (162 loc) · 5.41 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "application" {
type = string
default = ""
description = "Application (e.g. `cd` or `clouddrove`)."
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list
default = []
description = "Label order, e.g. `name`,`application`."
}
variable "attributes" {
type = list
default = []
description = "Additional attributes (e.g. `1`)."
}
variable "tags" {
type = map
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)."
}
variable "managedby" {
type = string
default = "anmol@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'."
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `organization`, `environment`, `name` and `attributes`."
}
variable "enabled" {
type = bool
default = true
description = "Whether to create the resources. Set to `false` to prevent the module from creating any resources."
}
variable "cluster_name" {
type = string
default = ""
description = "The name of the EKS cluster."
}
variable "aws_iam_instance_profile_name" {
type = string
default = ""
description = "The name of the existing instance profile that will be used in autoscaling group for EKS workers. If empty will create a new instance profile."
}
variable "volume_size" {
type = number
default = 20
description = "The size of ebs volume."
}
variable "volume_type" {
type = string
default = "standard"
description = "The type of volume. Can be `standard`, `gp2`, or `io1`. (Default: `standard`)."
}
variable "node_group_enabled" {
type = bool
default = false
description = "Enabling or disabling the node group."
}
variable "node_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."
}
variable "ami_type" {
type = string
default = "AL2_x86_64"
description = "Type of Amazon Machine Image (AMI) associated with the EKS Node Group. Defaults to `AL2_x86_64`. Valid values: `AL2_x86_64`, `AL2_x86_64_GPU`. Terraform will only perform drift detection if a configuration value is provided"
}
variable "node_group_desired_size" {
type = number
default = 2
description = "Desired number of worker node groups"
}
variable "node_group_max_size" {
type = number
default = 3
description = "The maximum size of the autoscale node group."
}
variable "node_group_min_size" {
type = number
default = 1
description = "The minimum size of the autoscale node group."
}
variable "ami_release_version" {
type = string
default = ""
description = "AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version"
}
variable "subnet_ids" {
type = list(string)
default = []
description = "A list of subnet IDs to launch resources in EKS."
}
variable "key_name" {
type = string
default = ""
description = "SSH key name that should be used for the instance."
}
variable "kubernetes_version" {
type = string
default = ""
description = "Kubernetes version. Defaults to EKS Cluster Kubernetes version. Terraform will only perform drift detection if a configuration value is provided"
}
variable "kubernetes_labels" {
type = map
default = {}
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"
}
variable "node_group_instance_types" {
type = list(string)
default = []
description = "Set of instance types associated with the EKS Node Group. Defaults to [\"t3.medium\"]. Terraform will only perform drift detection if a configuration value is provided"
}
variable "cluster_namespace" {
type = string
default = ""
description = "Kubernetes namespace for selection"
}
variable "enable_cluster_autoscaler" {
type = bool
default = false
description = "Whether to enable node group to scale the Auto Scaling Group"
}
variable "node_group_volume_size" {
type = number
default = 20
description = "Disk size in GiB for worker nodes. Defaults to 20. Terraform will only perform drift detection if a configuration value is provided"
}
variable "node_group_name" {
type = string
default = ""
description = "Name of node group"
}
variable "module_depends_on" {
type = any
default = null
description = "Can be any value desired. Module will wait for this value to be computed before creating node group."
}
variable "before_cluster_joining_userdata" {
type = string
default = ""
description = "Additional commands to execute on each worker node before joining the EKS cluster (before executing the `bootstrap.sh` script). For more info, see https://kubedex.com/90-days-of-aws-eks-in-production"
}
variable "node_role_arn" {
type = string
default = ""
description = "ARN of role profile."
}