-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
152 lines (125 loc) · 3.03 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
variable "region" {
default = "us-east-2"
description = "region to provision"
type = string
validation {
condition = can(regex("^us-east-1$|^us-east-2$|^us-west-1$|^us-west-2$|^eu-west-1$|^eu-west-2$|^eu-central-1$|^eu-north-1$", var.region))
error_message = "Invalid AWS region. Please choose one of: us-east-1, us-east-2, us-west-1, us-west-2, eu-west-1, eu-west-2, eu-central-1, eu-north-1."
}
}
variable "az" {
description = "availability zone to provision"
type = string
default = "us-east-2b"
}
variable "env" {
default = "dev"
type = string
}
variable "sbcli_cmd" {
default = "sbcli-dev"
description = "sbcli command to be used"
type = string
}
variable "sbcli_pkg_version" {
default = ""
description = "sbcli package and version to be used. ex: 2.0.0"
type = string
}
variable "cluster_name" {
default = "eks"
description = "EKS Cluster name"
}
variable "whitelist_ips" {
type = list(string)
default = ["0.0.0.0/0"]
}
variable "enable_eks" {
default = 0
type = number
}
variable "mgmt_nodes" {
default = 1
type = number
}
variable "storage_nodes" {
default = 3
type = number
}
variable "sec_storage_nodes" {
default = 0
type = number
}
variable "extra_nodes" {
default = 0
type = number
}
variable "mgmt_nodes_instance_type" {
default = "m5.large"
type = string
}
variable "storage_nodes_instance_type" {
default = "m5.large"
type = string
}
variable "sec_storage_nodes_instance_type" {
default = "m5.large"
type = string
}
variable "extra_nodes_instance_type" {
default = "m5.large"
type = string
}
variable "storage_nodes_ebs_size1" {
default = 2
type = number
}
variable "storage_nodes_ebs_size2" {
default = 50
type = number
}
variable "volumes_per_storage_nodes" {
default = 1
type = number
validation {
condition = var.volumes_per_storage_nodes <= 6
error_message = "The number of volumes per storage node must not exceed 6."
}
}
variable "nr_hugepages" {
default = 2048
description = "number of huge pages"
type = number
}
variable "enable_apigateway" {
default = 1
type = number
}
variable "tf_state_bucket_name" {
default = "simplyblock-terraform-state-bucket"
type = string
}
variable "extra_nodes_arch" {
type = string
default = "amd64"
validation {
condition = contains(["arm64", "amd64"], var.extra_nodes_arch)
error_message = "The architecture type must be either 'arm64' or 'amd64'."
}
}
variable "storage_nodes_arch" {
type = string
default = "amd64"
validation {
condition = contains(["arm64", "amd64"], var.storage_nodes_arch)
error_message = "The architecture type must be either 'arm64' or 'amd64'."
}
}
variable "snode_deploy_on_k8s" {
type = string
default = "false"
validation {
condition = contains(["false", "true"], var.snode_deploy_on_k8s)
error_message = "The value must be either 'true' or 'false'."
}
}