-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvars.tf
77 lines (61 loc) · 2.13 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
#### Required Variables ############################################
variable "vpc_id" {
description = "Id of the vpc where to place in the instances."
}
variable "subnet_ids" {
description = "Ids of the subnets to deploy the alb's into."
type = list(string)
}
variable "nomad_server_asg_name" {
description = "Name of the AutoScalingGroup of the nomad-servers."
}
variable "consul_server_asg_name" {
description = "Name of the AutoScalingGroup of the consul-servers."
}
variable "fabio_server_asg_name" {
description = "Name of the AutoScalingGroup of the fabio-servers."
}
#### Optional Variables ############################################
variable "env_name" {
description = "name of the environment (i.e. prod)"
default = "playground"
}
variable "stack_name" {
description = "shortcut for this stack"
default = "COS"
}
variable "aws_region" {
description = "The AWS region to deploy into (e.g. us-east-1)."
default = "eu-central-1"
}
variable "nomad_ui_port" {
description = "The port to access the nomad ui."
default = 4646
}
variable "consul_ui_port" {
description = "The port to access the consul ui."
default = 8500
}
variable "fabio_ui_port" {
description = "The port to access the fabio ui."
default = 9998
}
variable "allowed_cidr_blocks_for_ui_alb" {
description = "Map for cidr blocks that should get access over alb. The format is name:cidr-block. I.e. 'my_cidr'='90.250.75.79/32'"
type = map(string)
default = {
"all" = "0.0.0.0/0"
}
}
variable "unique_postfix" {
description = "A postfix that will be used in names to avoid collisions (mainly used for name tags)."
default = ""
}
variable "ui_alb_https_listener_cert_arn" {
description = "ARN of the certificate that should be used to set up the https endpoint for the ui-alb's. If not provided, a http enpoint will be created."
default = ""
}
variable "ui_alb_use_https_listener" {
description = "If true, the https endpoint for the ui-albs will be created instead of the http one. Precondition for this is that ui_alb_https_listener_cert_arn is set apropriately."
default = false
}