-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
71 lines (64 loc) · 1.33 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
variable "region" {
type = string
description = "AWS region"
default = "us-west-2"
}
variable "cluster_name" {
type = string
description = "Cluster name"
}
variable "instance_types" {
type = list(string)
description = "nodegroup instance type"
default = ["t3.small"]
}
variable "disk_size" {
type = string
description = "Disk size"
default = "40"
}
variable "map_users" {
type = list(object({
userarn = string
username = string
groups = list(string)
}))
description = "Kubernetes roles"
}
variable "node_groups" {
type = map(object({
ami_type = string
desired_capacity = string
disk_size = string
instance_types = list(string)
k8s_labels = map(string)
min_size = string
}))
description = "nodegroup definition"
default = {
"node" = {
ami_type = "AL2_x86_64"
desired_capacity = "1"
min_size = "1"
disk_size = "20"
instance_types = ["m5.xlarge"]
k8s_labels = {
"workload" = "core"
}
}
}
}
variable "node_sg_rules" {
type = map(object({
type = string
port = string
protocol = string
}))
default = {
"argo_cd" = {
port = "8080"
protocol = "tcp"
type = "ingress"
},
}
}