This repository has been archived by the owner on Aug 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbluedata_infra_variables.tf
262 lines (232 loc) · 9.1 KB
/
bluedata_infra_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
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
variable "profile" { default = "default" }
variable "region" { }
variable "az" { }
variable "project_id" { }
variable "client_cidr_block" { }
variable "check_client_ip" { default = "true" }
variable "additional_client_ip_list" { default = [] }
variable "vpc_cidr_block" { }
variable "subnet_cidr_block" { }
variable "create_iam_user" { default = "false" }
variable "EC2_CENTOS7_AMIS" {
# Find more at https://console.aws.amazon.com/ec2/home?region=us-east-1#Images:visibility=public-images;search=aws-marketplace/CentOS%20Linux%207%20x86_64%20HVM%20EBS%20ENA%201805_01-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-77ec9308.4
default = {
us-east-1 = "ami-9887c6e7" # N.Virginia
us-east-2 = "ami-e1496384" # Ohio
us-west-1 = "ami-4826c22b" # N.California
us-west-2 = "ami-3ecc8f46" # Oregon
ap-southeast-1 = "ami-8e0205f2" # Singapore
eu-central-1 = "ami-dd3c0f36" # Frankfurt
eu-west-1 = "ami-3548444c" # Ireland
eu-west-2 = "ami-00846a67" # London
eu-west-3 = "ami-262e9f5b" # Paris
eu-north-1 = "ami-b133bccf" # Stockholm
ca-central-1 = "ami-e802818c" # Canada
}
}
variable "EC2_UBUNTU1804_AMIS" {
# Find more at https://console.aws.amazon.com/ec2/home?region=us-east-1#Images:visibility=public-images;search=aws-marketplace/CentOS%20Linux%207%20x86_64%20HVM%20EBS%20ENA%201805_01-b7ee8a69-ee97-4a49-9e68-afaee216db2e-ami-77ec9308.4
default = {
us-east-1 = "ami-06c075a638fee778f" # N.Virginia
us-east-2 = "ami-0ee5e851705bfaf7a" # Ohio
us-west-1 = "ami-0eedd569ba78a4bbc" # N.California
us-west-2 = "ami-01cfa0ce6fe1024f8" # Oregon
ap-southeast-1 = "ami-088d07b5c35876923" # Singapore
eu-central-1 = "ami-060e472760062f83f" # Frankfurt
eu-west-1 = "ami-02f7235fe5805da91" # Ireland
eu-west-2 = "ami-0978f2d57755c6503" # London
eu-west-3 = "ami-0d857c06968b4f4fb" # Paris
eu-north-1 = "ami-0991deb71c7c7537f" # Stockholm
ca-central-1 = "ami-0aefe348b9802b0fd" # Canada
}
}
variable "EC2_WIN_RDP_AMIS" {
default = {
us-east-1 = "ami-0f969b429284d6156" # N.Virginia
us-east-2 = "ami-02ec6f788a1f1a739" # Ohio
us-west-1 = "ami-0a017e6b84bbbca59" # N.California
us-west-2 = "ami-0bd8c602fafdca7b5" # Oregon
ap-southeast-1 = "ami-04ea5e0cb6ab293e0" # Singapore
eu-central-1 = "ami-01ff06d6c38ed6008" # Frankfurt
eu-west-1 = "ami-0a2b07f79c45eeef1" # Ireland
eu-west-2 = "ami-0648c16a1a9bd20dc" # London
eu-west-3 = "ami-044bb8de8c5a4ebde" # Paris
eu-north-1 = "ami-08b3a48a0df290fce" # Stockholm
ca-central-1 = "ami-08b3a48a0df290fce" # Dummy Canada
}
}
variable "EC2_LIN_RDP_AMIS" {
// https://aws.amazon.com/marketplace/pp/B07LBG6YGB?ref=cns_srchrow
default = {
us-east-1 = "ami-08cf3d19c50987ffc" # N.Virginia
us-east-2 = "ami-022a505199d19fbe4" # Ohio
us-west-1 = "ami-0849ceb9ac3066e90" # N.California
us-west-2 = "ami-016fcfe2d5ccf859a" # Oregon
ap-southeast-1 = "ami-07dd34d19c20168bf" # Singapore
eu-central-1 = "ami-03dbefae8333132eb" # Frankfurt
eu-west-1 = "ami-0fbaf7a1071b50d9c" # Ireland
eu-west-2 = "ami-05748056eed47d81b" # London
eu-west-3 = "ami-0c432dc2d9e9a1420" # Paris
eu-north-1 = "ami-01a16aeb746ea52eb" # Stockholm
ca-central-1 = "ami-02b791c5ee1dc0751" # Canada
}
}
variable "create_eip_controller" {
default = false
}
variable "create_eip_gateway" {
default = false
}
variable "create_eip_rdp_linux_server" {
default = false
}
variable "embedded_df" {
default = true
}
variable "create_eks_cluster" {
default = false
}
variable "eks_subnet2_cidr_block" {
default = "10.1.2.0/24"
}
variable "eks_subnet3_cidr_block" {
default = "10.1.3.0/24"
}
variable "eks_subnet2_az_suffix" {
default = "b"
}
variable "eks_subnet3_az_suffix" {
default = "c"
}
variable "eks_scaling_config_desired_size" {
default = 1
}
variable "eks_scaling_config_max_size" {
default = 1
}
variable "eks_scaling_config_min_size" {
default = 1
}
variable "eks_instance_type" {
default = "t2.micro"
}
variable "install_with_ssl" {
default = true
}
variable "ssh_prv_key_path" {}
variable "ssh_pub_key_path" {}
variable "worker_count" { default = 3 }
variable "mapr_cluster_1_count" { default = 0 }
variable "mapr_cluster_1_name" { default = "demo1.mapr.com" }
variable "mapr_cluster_2_count" { default = 0 }
variable "mapr_cluster_2_name" { default = "demo2.mapr.com" }
variable "gpu_worker_count" { default = 0 }
variable "gpu_worker_instance_type" {
default = ""
}
variable "gpu_worker_has_disk_for_df" {
default = false
}
variable "gtw_instance_type" { default = "m4.2xlarge" }
variable "ctr_instance_type" { default = "m4.2xlarge" }
variable "wkr_instance_type" {
type = string
default = "m4.2xlarge"
}
variable "wkr_instance_types" {
type = list
default = null
}
variable "nfs_instance_type" { default = "t2.small" }
variable "ad_instance_type" { default = "t2.small" }
variable "rdp_instance_type" { default = "t2.xlarge" }
variable "mapr_instance_type" { default = "m4.2xlarge" }
variable "epic_dl_url" { }
variable "epid_dl_url_needs_presign" { default = false }
variable "epic_dl_url_presign_options" { default = "" }
variable "epic_options" { default = "" }
variable "selinux_disabled" { default = false }
variable "nfs_server_enabled" { default = false }
variable "ad_server_enabled" { default = true }
variable "ad_member_group" { default = "DemoTenantUsers" }
variable "ad_admin_group" { default = "DemoTenantAdmins" }
variable "dns_zone_name" {
default = "samdom.example.com"
}
variable "enable_route53_private_dns" { default = false }
variable "rdp_server_enabled" { default = true }
variable "rdp_server_operating_system" {
type = string
default = "LINUX"
validation {
condition = var.rdp_server_operating_system == "WINDOWS" || var.rdp_server_operating_system == "LINUX"
error_message = "Valid values: WINDOWS | LINUX."
}
}
variable "allow_ssh_from_world" {
default = false
}
variable "allow_rdp_from_world" {
default = false
}
variable "softether_cidr_block" {
default = "192.168.30.0/24"
}
variable "softether_rdp_ip" {
default = "192.168.30.1"
}
variable "ca_cert" {
default =<<EOF
-----BEGIN CERTIFICATE-----
MIIDSzCCAjOgAwIBAgIIPkySS+2b3eIwDQYJKoZIhvcNAQELBQAwIDEeMBwGA1UE
AxMVbWluaWNhIHJvb3QgY2EgM2U0YzkyMCAXDTIwMDIyOTE4MTk1MFoYDzIxMjAw
MjI5MTgxOTUwWjAgMR4wHAYDVQQDExVtaW5pY2Egcm9vdCBjYSAzZTRjOTIwggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCa4GCA9HSEGfJ1l9c+ccA8D6xI
b2LED7ud924at+Qs24ZGXus3GVTSKUVxeuIESm/f10I1UW1Q8kn9lESjWNGks+uO
vE/q8KCxgww2HL2o/gmTn3fATQ+QCexRiiXcNlPezz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