-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
93 lines (82 loc) · 1.93 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
variable "region" {
description = "AWS region"
default = "eu-west-1"
}
variable "cluster_name" {
default = "eks-terraform"
}
variable "cluster_version" {
description = "Kubernetes version"
default = "1.21"
}
variable "instance_type" {
description = "Instance size"
default = "t3a.small"
}
variable "asg_desired_capacity" {
description = "Auto scaling desired capacity"
default = "1"
}
variable "asg_min_capacity" {
description = "Auto scaling minimum capacity"
default = "1"
}
variable "asg_max_capacity" {
description = "Auto scaling maximum capacity"
default = "6"
}
variable "k8s_service_account_namespace" {
description = "Autoscaler service account namespace"
default = "kube-system"
}
variable "k8s_service_account_name" {
description = "Autoscaler service account name"
default = "cluster-autoscaler-aws-cluster-autoscaler-chart"
}
## Additional users
#variable "map_accounts" {
# description = "Additional AWS account numbers to add to the aws-auth configmap."
# type = list(string)
#
# default = [
# "777777777777",
# "888888888888",
# ]
#}
#variable "map_roles" {
# description = "Additional IAM roles to add to the aws-auth configmap."
# type = list(object({
# rolearn = string
# username = string
# groups = list(string)
# }))
#
# default = [
# {
# rolearn = "arn:aws:iam::66666666666:role/role1"
# username = "role1"
# groups = ["system:masters"]
# },
# ]
#}
#variable "map_users" {
# description = "Additional IAM users to add to the aws-auth configmap."
# type = list(object({
# userarn = string
# username = string
# groups = list(string)
# }))
#
# default = [
# {
# userarn = "arn:aws:iam::66666666666:user/user1"
# username = "user1"
# groups = ["system:masters"]
# },
# {
# userarn = "arn:aws:iam::66666666666:user/user2"
# username = "user2"
# groups = ["system:masters"]
# },
# ]
#}