-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
vars.tf
282 lines (237 loc) · 7.11 KB
/
vars.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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
// Region is AWS region, the region should support EFS
variable "region" {
type = string
}
// Script creates a separate VPC with demo deployment
variable "vpc_cidr" {
type = string
default = "172.31.0.0/16"
}
// Teleport cluster name to set up
variable "cluster_name" {
type = string
}
// Teleport UID is a UID for teleport user provisioned on the hosts
variable "teleport_uid" {
type = string
default = "1007"
}
// Instance types used for authentication servers auto scale groups
variable "auth_instance_type" {
type = string
default = "m4.large"
}
// Instance types used for proxy auto scale groups
variable "proxy_instance_type" {
type = string
default = "m4.large"
}
// Instance types used for teleport nodes auto scale groups
variable "node_instance_type" {
type = string
default = "t2.medium"
}
// Instance types used for monitor auto scale groups
variable "monitor_instance_type" {
type = string
default = "m4.large"
}
// SSH key name to provision instances withx
variable "key_name" {
type = string
}
// DNS and letsencrypt integration variables
// Zone name to host DNS record, e.g. example.com
variable "route53_zone" {
type = string
}
// Domain name to use for Teleport proxies,
// e.g. proxy.example.com
variable "route53_domain" {
type = string
}
// Whether to set wildcard Route53
// for use in Application Access
variable "add_wildcard_route53_record" {
type = bool
default = false
}
// whether to enable the mongodb listener
// adds security group setting, maps load balancer to port, and adds to teleport config
// this setting will be ignored if use_tls_routing=true
variable "enable_mongodb_listener" {
type = bool
default = false
}
// whether to enable the mysql listener
// adds security group setting, maps load balancer to port, and adds to teleport config
// this setting will be ignored if use_tls_routing=true
variable "enable_mysql_listener" {
type = bool
default = false
}
// whether to enable the postgres listener
// adds security group setting, maps load balancer to port, and adds to teleport config
// this setting will be ignored if use_tls_routing=true
variable "enable_postgres_listener" {
type = bool
default = false
}
// Email for letsencrypt domain registration
variable "email" {
type = string
}
// S3 Bucket to create for encrypted letsencrypt certificates
variable "s3_bucket_name" {
type = string
}
// AWS KMS alias used for encryption/decryption
// default is alias used in SSM
variable "kms_alias_name" {
type = string
default = "alias/aws/ssm"
}
// path to teleport enterprise/pro license file
variable "license_path" {
type = string
default = ""
}
// AMI name to use
variable "ami_name" {
type = string
}
// DynamoDB autoscale parameters
variable "autoscale_write_target" {
type = string
default = 50
}
variable "autoscale_read_target" {
type = string
default = 50
}
variable "autoscale_min_read_capacity" {
type = string
default = 5
}
variable "autoscale_max_read_capacity" {
type = string
default = 100
}
variable "autoscale_min_write_capacity" {
type = string
default = 5
}
variable "autoscale_max_write_capacity" {
type = string
default = 100
}
// InfluxDB and Telegraf versions
variable "influxdb_version" {
type = string
default = "1.4.2"
}
variable "telegraf_version" {
type = string
default = "1.5.1-1"
}
variable "grafana_version" {
type = string
default = "4.6.3"
}
// Password for grafana admin user
variable "grafana_pass" {
type = string
}
// Whether to use Amazon-issued certificates via ACM or not
// This must be set to true for any use of ACM whatsoever, regardless of whether Terraform generates/approves the cert
variable "use_acm" {
type = bool
default = false
}
// Whether to enable TLS routing in the cluster
// See https://goteleport.com/docs/architecture/tls-routing for more information
// Setting this will disable ALL separate listener ports. If you also use ACM, then:
// - you must use Teleport and tsh v13+
// - you must use `tsh proxy` commands for Kubernetes/database access
variable "use_tls_routing" {
type = bool
default = false
}
// CIDR blocks allowed to connect to the bastion SSH port
variable "allowed_bastion_ssh_ingress_cidr_blocks" {
type = list(any)
default = ["0.0.0.0/0"]
}
// CIDR blocks allowed for egress from bastion
variable "allowed_bastion_ssh_egress_cidr_blocks" {
type = list(any)
default = ["0.0.0.0/0"]
}
// CIDR blocks allowed for ingress for Teleport Proxy ports
variable "allowed_proxy_ingress_cidr_blocks" {
type = list(any)
default = ["0.0.0.0/0"]
}
// CIDR blocks allowed for egress from Teleport Proxies
variable "allowed_proxy_egress_cidr_blocks" {
type = list(any)
default = ["0.0.0.0/0"]
}
// CIDR blocks allowed for egress from Teleport Auth servers
variable "allowed_auth_egress_cidr_blocks" {
type = list(any)
default = ["0.0.0.0/0"]
}
// CIDR blocks allowed for ingress for Teleport Monitor ports
variable "allowed_monitor_ingress_cidr_blocks" {
type = list(any)
default = ["0.0.0.0/0"]
}
// CIDR blocks allowed for egress from Teleport Monitor
variable "allowed_monitor_egress_cidr_blocks" {
type = list(any)
default = ["0.0.0.0/0"]
}
// CIDR blocks allowed for egress from Teleport Node
variable "allowed_node_egress_cidr_blocks" {
type = list(any)
default = ["0.0.0.0/0"]
}
// Internet gateway destination CIDR Block
variable "internet_gateway_dest_cidr_block" {
type = string
default = "0.0.0.0/0"
}
// Route allowed for Auth Servers Destination CIDR Block
variable "auth_aws_route_dest_cidr_block" {
type = string
default = "0.0.0.0/0"
}
// Route allowed for Node Servers Destination CIDR Block
variable "node_aws_route_dest_cidr_block" {
type = string
default = "0.0.0.0/0"
}
// Optional domain name to use for Teleport proxy NLB alias
// Only applied when using ACM, it will do nothing when ACM is disabled
// Only applied when _not_ using TLS routing, it will do nothing when TLS routing is enabled
// When using ACM we have one ALB (for port 443 with TLS termination) and one NLB
// (for all other traffic - 3023/3024/3026 etc)
// As this NLB is at a different address, we add an alias record in Route 53 so that
// it can be used by applications which connect to it directly (like kubectl) rather
// than discovering the NLB's address through the Teleport API (like tsh does)
variable "route53_domain_acm_nlb_alias" {
type = string
default = ""
}
// (optional) Change the default authentication type used for the Teleport cluster.
// See https://goteleport.com/docs/reference/authentication for more information.
// This is useful for persisting a different default authentication type across AMI upgrades when you have a SAML, OIDC
// or GitHub connector configured in DynamoDB. The default if not set is "local".
// Teleport Community Edition supports "local" or "github"
// Teleport Enterprise Edition supports "local", "github", "oidc" or "saml"
// Teleport Enterprise FIPS deployments have local authentication disabled, so should use "github", "oidc" or "saml"
variable "teleport_auth_type" {
type = string
default = "local"
}