-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
153 lines (122 loc) · 2.98 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
variable "region" {
type = string
default = "eu-west-1"
}
variable "env" {
type = string
default = null
}
variable "cluster_name" {
type = string
default = null
}
variable "cluster_version" {
type = string
default = "1.30"
}
variable "vpc_id" {
type = string
default = null
}
variable "public_subnet_ids" {
type = list(string)
default = null
}
variable "private_subnet_ids" {
type = list(string)
default = null
}
variable "cluster_endpoint_public_access_cidrs" {
type = list(string)
default = ["0.0.0.0/0"]
}
variable "cluster_additional_security_group_ids" {
type = list(string)
default = []
}
variable "cluster_security_group_additional_rules" {
description = "List of additional security group rules to add to the cluster security group created. Set `source_node_security_group = true` inside rules to set the `node_security_group` as source"
type = any
default = {}
}
variable "cluster_enabled_log_types" {
type = list(string)
default = ["audit", "api", "authenticator"]
}
# 0.32+ !!!
# https://karpenter.sh/v0.32/concepts/nodeclasses/
variable "karpenter_nodeclass_arm64_name" {
type = string
default = "bottlerocket-arm64"
}
variable "karpenter_nodeclass_amd64_name" {
type = string
default = "al2-amd64"
}
variable "karpenter_nodepool_cpu_limit" {
type = string
default = "1000"
}
variable "karpenter_nodepool_memory_limit" {
type = string
default = "1000Gi"
}
variable "karpenter_nodeclass_ebs_size" {
type = string
default = "100Gi"
}
variable "karpenter_nodeclass_ebs_type" {
type = string
default = "gp2"
}
variable "karpenter_nodeclass_ebs_delete_on_termination" {
type = string
default = "true"
}
# https://karpenter.sh/v0.32/concepts/nodepools/
variable "karpenter_nodepool_arm64_name" {
type = string
default = "arm64"
}
variable "karpenter_nodepool_amd64_name" {
type = string
default = "amd64"
}
variable "karpenter_nodepool_arm64_capacity_types" {
type = string
default = "spot on-demand"
}
variable "karpenter_nodepool_amd64_capacity_types" {
type = string
default = "spot on-demand"
}
variable "karpenter_nodepool_disruption_consolidation_policy" {
type = string
default = "WhenUnderutilized"
}
variable "karpenter_nodepool_disruption_consolidate_after" {
type = string
default = "30s"
}
variable "karpenter_nodepool_disruption_expire_after" {
type = string
default = "720h"
}
variable "karpenter_nodepool_arm64_weight" {
type = number
default = 50 # a higher weight value makes this provisioner preferred
}
variable "karpenter_nodepool_amd64_weight" {
type = number
default = 40
}
variable "aws_sso_developer_role_names" {
description = "List of role name parts to include in the IAM roles data source for AWS SSO developer"
type = list(string)
default = []
}
variable "aws_admin_users" {
description = "List of users with admin access"
type = list(string)
default = []
}