-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
237 lines (201 loc) · 5.01 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
variable "cloudflare_enable" {
description = "Make records in cloudflare"
type = bool
default = false
}
variable "id" {
description = "A unique identifier for the deployment"
type = string
default = ""
}
########
# Label
########
variable "name" {
description = "The name of the deployment"
type = string
default = "polkadot-api"
}
variable "tags" {
description = "The tags of the deployment"
type = map(string)
default = {}
}
variable "namespace" {
description = "The namespace to deploy into"
type = string
default = "polkadot"
}
variable "network_name" {
description = "The network name, ie kusama / mainnet"
type = string
default = "kusama"
}
######
# DNS
######
variable "subdomain" {
description = "The subdomain"
type = string
default = ""
}
variable "internal_tld" {
description = "The top level domain for the internal DNS"
type = string
default = "internal"
}
variable "root_domain_name" {
description = "The public domain"
type = string
default = ""
}
variable "create_internal_domain" {
description = "Boolean to create an internal split horizon DNS"
type = bool
default = false
}
variable "create_public_regional_subdomain" {
description = "Boolean to create regional subdomain - ie us-east-1.example.com"
type = bool
default = false
}
variable "zone_id" {
description = "The zone ID to configure as the root zoon - ie subdomain.example.com's zone ID"
type = string
default = ""
}
######
# VPC
######
variable "vpc_name" {
description = "The name of the VPC"
type = string
default = ""
}
variable "azs" {
description = "List of availability zones"
type = list(string)
default = []
}
variable "num_azs" {
description = "The number of AZs to deploy into"
type = number
default = 0
}
variable "cidr" {
description = "The cidr range for network"
type = string
default = "10.0.0.0/16"
}
//variable "cluster_name" {
// description = "k8s cluster name - blank gets random pet"
// type = string
// default = ""
//}
##################
# Security Groups
##################
variable "all_enabled" {
description = "Bool to enable all the security groups"
type = bool
default = false
}
variable "corporate_ip" {
description = "The corporate IP you want to restrict ssh traffic to"
type = string
default = ""
}
variable "bastion_enabled" {
description = "Boolean to enable a bastion host. All ssh traffic restricted to bastion"
type = bool
default = false
}
variable "consul_enabled" {
description = "Boolean to allow consul traffic"
type = bool
default = false
}
variable "hids_enabled" {
description = "Boolean to enable intrusion detection systems traffic"
type = bool
default = false
}
variable "k8s_enabled" {
description = "Boolean to enable kubernetes"
type = bool
default = false
}
variable "logging_enabled" {
description = "Boolean to allow logging related traffic"
type = bool
default = false
}
variable "monitoring_enabled" {
description = "Boolean to for prometheus related traffic"
type = bool
default = false
}
variable "api_enabled" {
description = "Boolean to allow api related traffic"
type = bool
default = false
}
variable "validator_enabled" {
description = "Boolean to allow validator related traffic"
type = bool
default = false
}
variable "bastion_sg_name" {
description = "Name for the bastion security group"
type = string
default = "bastion-sg"
}
variable "consul_sg_name" {
description = "Name for the consult security group"
type = string
default = "consul-sg"
}
variable "k8s_sg_name" {
description = "Name for the consult security group"
type = string
default = "k8s-sg"
}
variable "monitoring_sg_name" {
description = "Name for the monitoring security group"
type = string
default = "monitoring-sg"
}
variable "hids_sg_name" {
description = "Name for the HIDS security group"
type = string
default = "hids-sg"
}
variable "logging_sg_name" {
description = "Name for the logging security group"
type = string
default = "logging-sg"
}
variable "api_sg_name" {
description = "Name for the api security group"
type = string
default = "api-sg"
}
variable "validator_sg_name" {
description = "Name for the validator security group"
type = string
default = "validator-sg"
}
variable "polkadot_network_settings" {
description = "Map of port settings for one or more polkadot networks"
type = map(map(string))
default = {
polkadot = {
name = "polkadot"
shortname = "polkadot"
api_health = "5500"
polkadot_prometheus = "9610"
json_rpc = "9933"
ws_rpc = "9944"
}
}
}