-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
179 lines (144 loc) · 3.48 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
variable "aws_region" {
type = "string"
default = "us-west-2"
}
variable "service" {
type = "string"
default = "ddc"
}
variable "service_instance" {
type = "string"
}
variable "global_tags" {
type = "map"
default = {
Provisioner = "Terraform"
}
}
variable "service_ip_whitelist" {
type = "list"
default = ["0.0.0.0/0"]
}
variable "ucp_username" {
type = "string"
}
variable "ucp_password" {
type = "string"
}
variable "hosted_zone_id" {
type = "string"
}
variable domain {
type = "string"
description = "Domain where UCP and DTR are going to run (ie. wslogistics.io). TF will attempt to find existing ACM certs."
}
variable "ucp_subdomain" {
type = "string"
description = "Subdomain for UCP (ie. ucp). It will be used along with 'domain' variable like: ucp.wslogistics.io"
default = "ucp"
}
variable "dtr_subdomain" {
type = "string"
description = "Subdomain for DTR (ie. dtr). It will be used along with 'domain' variable like: dtr.wslogistics.io"
default = "dtr"
}
variable "dtr_http_port" {
type = "string"
description = "HTTP Port where DTR is gonna run internally (defaults to 80). DTR is finally exposed through LB on port 80 anyway."
default = 80
}
variable "dtr_https_port" {
type = "string"
description = "HTTPS Port where DTR is gonna run internally (defaults to 443). DTR is finally exposed through LB on port 443 anyway."
default = 443
}
variable "ucp_https_port" {
type = "string"
description = "HTTPS Port where UCP is gonna run internally (defaults to 443). UCP is finally exposed through LB on port 443 anyway."
default = 4443
}
variable "docker_ee_url" {
type = "string"
}
variable "docker_ee_version" {
type = "string"
default = "stable-17.06"
}
variable "docker_ucp_version" {
type = "string"
default = "2.2.5"
}
# VPC
variable "vpc_cidr" {
description = "VPC CIDR to use. Defaults to 10.0.0.0/16."
type = "string"
default = "10.0.0.0/16"
}
variable "vpc_private_subnets" {
description = "Private subnets cidrs to create."
type = "list"
default = ["10.0.1.0/24", "10.0.2.0/24"]
}
variable "vpc_public_subnets" {
description = "Public subnets cidrs to create."
type = "list"
default = ["10.0.101.0/24", "10.0.102.0/24"]
}
variable "availability_zones" {
description = "AWS AZs to launch servers."
type = "list"
default = ["us-west-2a", "us-west-2b"]
}
# EC2
variable "ssh_key_name" {
type = "string"
}
variable "manager_node_min_count" {
type = "string"
default = 0
}
variable "manager_node_max_count" {
type = "string"
default = 0
}
variable "manager_node_desired_count" {
type = "string"
default = 0
}
variable "manager_node_instance_type" {
type = "string"
default = "t2.medium"
}
variable "dtr_node_min_count" {
type = "string"
default = 0
}
variable "dtr_node_max_count" {
type = "string"
default = 0
}
variable "dtr_node_desired_count" {
type = "string"
description = "It is recommended to have 3, 5, or 7 DTR replicas for HA"
default = 0
}
variable "dtr_node_instance_type" {
type = "string"
default = "t2.medium"
}
variable "worker_node_min_count" {
type = "string"
default = 0
}
variable "worker_node_max_count" {
type = "string"
default = 0
}
variable "worker_node_desired_count" {
type = "string"
default = 0
}
variable "worker_node_instance_type" {
type = "string"
default = "t2.small"
}