-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
47 lines (38 loc) · 888 Bytes
/
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
variable "profile" {
type = string
}
variable "region" {
type = string
}
variable "cluster_name" {
type = string
}
variable "cluster_version" {
type = string
}
variable "vpc_name" {
type = string
}
variable "ip_family" {
type = string
default = "ipv4"
validation {
condition = var.ip_family == "ipv4" || var.ip_family == "ipv6"
error_message = "ip_family can only be ipv4 or ipv6"
}
}
variable "tags" {
type = map(string)
default = {}
}
variable "cluster_log_types" {
type = list(string)
default = ["api", "authenticator"]
validation {
condition = length(setsubtract(
var.cluster_log_types,
["api", "audit", "authenticator", "controllerManager", "scheduler"]
)) == 0
error_message = "Control plane logs can only be a list containing any of api, audit, authenticator, controllerManager or scheduler."
}
}