-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathterraform.tfvars.example
375 lines (350 loc) · 10.3 KB
/
terraform.tfvars.example
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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
# ------------------------------------------------------------------------------
# This code is part of the TrinityX software suite
# Copyright (C) 2023 ClusterVision Solutions b.v.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# File: aws/terraform.tfvars
# Author: Sumit Sharma
# E-Mail: sumit.sharma@clustervision.com
# Date: 2024-08-05
# Description: This is an example Terraform Variables file. (This is an
# autogenerated by the Ansible Playbook).
# Version: 1.0.0
# Status: Development
# License: GPL
# ------------------------------------------------------------------------------
# Notes:
# - This is an autogenerated file by the Ansible Playbook in the process of installation.
# - Update the default values will affect the infrastructure which is already created.
# - DO NOT EDIT THIS FILE, IF YOU ARE NOT SURE WHAT YOU ARE DOING.
# ------------------------------------------------------------------------------
# AWS Cloud Modules
aws_network = true
aws_vpn = true
aws_storage = true
aws_images = true
aws_controller = true
aws_node = true
# AWS Credentials
aws_region = "eu-central-1"
access_key = "IAMADUMMY-ACCESS-KEY"
secret_key = "I-AM-A-DUMMY-SECRET-KEY-FOR-DEMO-PURPOSE"
# AWS VPC
aws_vpc_name = "TrinityX-VPC"
aws_vpc_cidr_block = "10.1.0.0/16"
aws_vpc_instance_tenancy = "default"
aws_vpc_enable_dns_support = true
aws_vpc_enable_dns_hostnames = true
aws_vpc_subnet_name = "TrinityX-VPC-Public-Subnet"
aws_vpc_subnet_cidr_block = "10.1.0.0/16"
aws_vpc_internet_gateway_name = "TrinityX-VPC-Internet-Gateway"
aws_route_table_cidr_block = "0.0.0.0/0"
aws_route_table_name = "TrinityX-VPC-Public-Route-Table"
aws_network_acl_name = "TrinityX-VPC-Public-NACL"
aws_network_acl_rules = [
{
direction = "egress"
protocol = "-1"
rule_no = 100
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 0
to_port = 0
},
{
direction = "egress"
protocol = "udp"
rule_no = 110
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 500
to_port = 500
},
{
direction = "egress"
protocol = "udp"
rule_no = 120
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 4500
to_port = 4500
},
{
direction = "egress"
protocol = "udp"
rule_no = 130
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 53
to_port = 53
},
{
direction = "egress"
protocol = "tcp"
rule_no = 140
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 53
to_port = 53
},
{
direction = "ingress"
protocol = "-1"
rule_no = 100
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 0
to_port = 0
},
{
direction = "ingress"
protocol = "udp"
rule_no = 110
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 500
to_port = 500
},
{
direction = "ingress"
protocol = "udp"
rule_no = 120
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 4500
to_port = 4500
},
{
direction = "ingress"
protocol = "udp"
rule_no = 130
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 53
to_port = 53
},
{
direction = "ingress"
protocol = "tcp"
rule_no = 140
action = "allow"
cidr_block = "0.0.0.0/0"
from_port = 53
to_port = 53
}
]
aws_security_group_name = "TrinityX-VPC-VPN-SG"
aws_security_group_rules = [
{
direction = "egress"
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow all outbound traffic"
},
{
direction = "ingress"
from_port = 500
to_port = 500
protocol = "udp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow inbound VPN traffic"
},
{
direction = "ingress"
from_port = 4500
to_port = 4500
protocol = "udp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow inbound VPN traffic"
},
{
direction = "ingress"
from_port = 53
to_port = 53
protocol = "udp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow inbound DNS traffic (UDP)"
},
{
direction = "ingress"
from_port = 53
to_port = 53
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow inbound DNS traffic (TCP)"
},
{
direction = "egress"
from_port = 500
to_port = 500
protocol = "udp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow outbound VPN traffic"
},
{
direction = "egress"
from_port = 4500
to_port = 4500
protocol = "udp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow outbound VPN traffic"
},
{
direction = "egress"
from_port = 53
to_port = 53
protocol = "udp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow outbound DNS traffic (UDP)"
},
{
direction = "egress"
from_port = 53
to_port = 53
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow outbound DNS traffic (TCP)"
},
{
direction = "ingress"
from_port = 8
to_port = 8
protocol = "icmp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow inbound ICMP Echo Request (Ping)"
},
{
direction = "ingress"
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow SSH"
},
{
direction = "ingress"
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow HTTP"
},
{
direction = "ingress"
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow HTTPS"
},
{
direction = "ingress"
from_port = 8080
to_port = 8080
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow OOD 8080"
},
{
direction = "ingress"
from_port = 7050
to_port = 7050
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow TrinityX 7050"
},
{
direction = "ingress"
from_port = 7051
to_port = 7051
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
description = "Allow TrinityX 7051"
}
]
# AWS VPN
aws_customer_gateway_name = "TrinityX-Onsite"
aws_customer_gateway_bgp_asn = 65000
aws_customer_gateway_ip_address = "45.138.39.108"
aws_customer_gateway_type = "ipsec.1"
aws_vpn_gateway_name = "TinityX-VPG"
aws_vpn_name = "TrinityX-VPN"
aws_vpn_connection_type = "ipsec.1"
aws_vpn_static_routes_only = true
aws_vpn_local_ipv4_network_cidr = "10.141.0.0/16"
aws_vpn_remote_ipv4_network_cidr = "10.1.0.0/16"
aws_vpn_connection_route_cidr_block = "10.141.0.0/16"
# AWS S3
aws_s3_bucket_prefix = "trinityx"
aws_s3_force_destroy = true
aws_s3_bucket_name_tag = "TrinityX Bucket"
aws_s3_bucket_env = "Dev"
aws_s3_bucket_versioning = "Enabled"
aws_s3_bucket_enc_algorithm = "AES256"
aws_s3_bucket_key = true
aws_s3_block_public_acls = true
aws_s3_block_public_policy = true
aws_s3_ignore_public_acls = true
aws_s3_restrict_public_buckets = true
# AWS Image
aws_s3_object_key_path = "images/trinityx.vhd"
aws_s3_object_source = "/trinity/images/trinityx.vhd"
aws_s3_object_content_type = "application/octet-stream"
aws_s3_object_encryption = "AES256"
aws_iam_role_name = "TrinityImageRole"
aws_iam_role_policy_version = "2012-10-17"
aws_iam_role_policy_effect = "Allow"
aws_iam_role_policy_service = "vmie.amazonaws.com"
aws_iam_role_policy_action = "sts:AssumeRole"
aws_iam_role_policy_ec2_access = "arn:aws:iam::aws:policy/AmazonEC2FullAccess"
aws_iam_role_policy_ec2_role = "arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM"
aws_iam_role_policy_s3_access = "arn:aws:iam::aws:policy/AmazonS3FullAccess"
aws_iam_role_policy_s3_read = "arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess"
aws_image_license_type = "BYOL"
aws_image_boot_mode = "uefi"
aws_image_description = "TrinityX-Compute"
aws_image_platform = "Linux"
aws_image_role = "TrinityImageRole"
aws_image_container_format = "vhd"
aws_image_container_desc = "Rocky9"
# AWS Controller
aws_controller_ami_latest = true
aws_controller_ami_filter_by = "name"
aws_controller_ami_filter_values = "Rocky-9-EC2-LVM*"
aws_controller_ami_owners = ["679593333241"] # For Rocky=679593333241, Ubuntu=099720109477, RHEL=309956199498, AlmaLinux=874351743863, Fedora=125523088429, and so on.
aws_controller_instance_type = "t3.xlarge"
aws_controller_automatic_public_ip = false
aws_controller_root_device_size = 64
aws_controller_root_device_type = "gp2"
aws_controller_name = "TrinityX-Controller"
aws_controller_ip = "10.1.255.254"
aws_controller_eip_domain = "vpc"
aws_controller_ssh_public_key = "YOUR-SSH-PUBLIC-KEY"
aws_controller_os_username = "trinityx"
aws_controller_os_password = "YOUR-PASSWORD"
# AWS Node
aws_hostlist = "aws[001-004]"
aws_node_instance_type = "t3.xlarge"
aws_node_automatic_public_ip = false
aws_node_root_device_size = 20
aws_node_root_device_type = "gp2"
# AWS Import Variables
ami_id = ""
vpc_id = ""
public_subnet_id = ""
sg_id = ""