-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
236 lines (189 loc) · 5.07 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
variable "account_id" {
type = map(string)
default = {
"test" = "797728447925"
"notprod" = "483846886818"
"prod" = "337779336338"
}
}
variable "application_name" {
default = "external-tableau"
}
variable "naming_suffix" {
default = false
description = "Naming suffix for tags, value passed from dq-tf-apps"
}
variable "environment" {
default = "notprod"
description = "Switch between environments"
}
variable "az" {
default = "eu-west-2a"
description = "Default availability zone for the subnet."
}
variable "az2" {
default = "eu-west-2b"
description = "Default availability zone for the subnet."
}
variable "http_from_port" {
default = 80
description = "From port for HTTPS traffic"
}
variable "http_to_port" {
default = 80
description = "To port for HTTPS traffic"
}
variable "http_protocol" {
default = "tcp"
description = "Protocol for HTTPS traffic"
}
variable "SSH_from_port" {
default = 22
description = "From port for SSH traffic"
}
variable "SSH_to_port" {
default = 22
description = "To port for SSH traffic"
}
variable "SSH_protocol" {
default = "tcp"
description = "Protocol for SSH traffic"
}
variable "TSM_from_port" {
default = 8850
description = "From port for TSM traffic"
}
variable "TSM_to_port" {
default = 8850
description = "To port for TSM traffic"
}
variable "RDP_from_port" {
default = 3389
description = "From port for RDP traffic"
}
variable "rds_wg_from_port" {
default = 8060
description = "From port for Postgres Workgroup traffic"
}
variable "rds_wg_to_port" {
default = 8060
description = "To port for Postgres Workgroup traffic"
}
variable "dq_lambda_subnet_cidr" {
default = "10.1.42.0/24"
description = "Dedicated subnet for Lambda ENIs"
}
variable "dq_lambda_subnet_cidr_az2" {
default = "10.1.43.0/24"
description = "Dedicated subnet for Lambda ENIs"
}
variable "RDP_to_port" {
default = 3389
description = "To port for RDP traffic"
}
variable "RDP_protocol" {
default = "tcp"
description = "Protocol for RDP traffic"
}
variable "acp_prod_ingress_cidr" {
default = "10.5.0.0/16"
description = "ACP Prod CIDR as per IP Addresses and CIDR blocks document"
}
variable "peering_cidr_block" {
default = "10.3.0.0/16"
description = "DQ Peering CIDR as per IP Addresses and CIDR blocks document"
}
variable "dq_ops_ingress_cidr" {
default = "10.2.0.0/16"
description = "DQ Ops CIDR as per IP Addresses and CIDR blocks document"
}
variable "dq_external_dashboard_subnet" {
default = "10.1.14.0/24"
description = "DQ Apps CIDR as per IP Addresses and CIDR blocks document"
}
variable "dq_external_dashboard_subnet_az2" {
default = "10.1.15.0/24"
description = "DQ Apps CIDR as per IP Addresses and CIDR blocks document"
}
variable "dq_external_dashboard_instance_ip" {
description = "IP addresses of EC2 instances in Prod"
type = list(string)
default = [
"10.1.14.111",
"10.1.14.112",
"10.1.14.113",
"10.1.14.114",
]
}
variable "dq_external_staging_dashboard_instance_ip" {
description = "IP for staging instance"
default = "10.1.14.115"
}
variable "apps_vpc_id" {
default = false
description = "Value obtained from Apps module"
}
variable "route_table_id" {
default = false
description = "Value obtained from Apps module"
}
variable "key_name" {
default = "test_instance"
}
variable "s3_archive_bucket" {
description = "S3 archive bucket name"
}
variable "s3_carrier_portal_docs" {
description = "S3 bucket for carrier portal docs"
}
variable "s3_archive_bucket_key" {
description = "S3 archive bucket KMS key"
}
variable "s3_archive_bucket_name" {
description = "Name of archive bucket"
}
variable "haproxy_private_ip2" {
description = "IP of HaProxy 2"
}
variable "haproxy_private_ip" {
description = "IP of HaProxy 1"
}
variable "haproxy_config_bucket" {
description = "HAPROXY config bucket ID"
}
variable "haproxy_config_bucket_key" {
description = "HAPROXY config bucket KMS key"
}
############################
#Cloudwatch Alarm variables#
############################
variable "pipeline_name" {
default = "external-tableau-alarms"
}
variable "swap_alarm" {
description = "Switch to turn off Swap monitoring (required for MSSQL). Accepted values are 'false' to turn off and 'true' to excplicitly turn on"
default = "true"
}
variable "path_module" {
default = "unset"
}
variable "ec2_instance_id_0" {
default = "aws_instance.ext_tableau_linux[0]"
description = "The instance ID of the RDS database instance that you want to monitor."
type = string
}
variable "cpu_utilization_threshold" {
description = "The maximum percentage of CPU utilization."
type = string
default = 80
}
variable "available_memory_threshold" {
description = "The percentage of available memory."
type = string
default = 20
}
variable "used_storage_space_threshold" {
description = "The minimum amount of available storage space in Byte."
type = string
default = 80
}