-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstances.tf
240 lines (185 loc) · 6.83 KB
/
instances.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
#
# Copyright (C) 2019 Next Century Corporation
#
# This file may be redistributed and/or modified under either the GPL
# 2.0 or 3-Clause BSD license. In addition, the U.S. Government is
# granted government purpose rights. For details, see the COPYRIGHT.TXT
# file at the root of this project.
#
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
#
// !!!!!!!!!!!!!!!!Sensor Monitor!!!!!!!!!!!!!!!!!!!!!
resource "aws_instance" "twoSix_virtue_monitor_master2" {
ami = "ami-0f9cf087c1f27d9b1"
instance_type = "m4.2xlarge"
key_name = "twosix_ec2"
subnet_id = "${module.vpc.public_1a_id}"
vpc_security_group_ids = ["sg-fb7adab3", "sg-c1d38a88", "${aws_security_group.default_sg.id}", "${aws_security_group.virtue_internalports_dev_sg.id}"]
disable_api_termination = "true"
root_block_device {
volume_type = "gp2"
volume_size = "120"
delete_on_termination = true
}
tags {
Name = "Sensing Monitor Master 2"
}
lifecycle {
prevent_destroy = false
}
}
//!!!!!!!!!!!!!!!End of Sensor Monitor !!!!!!!!!!!!!!!!!!!!!!!!!
// !!!!!!!!!!!!!!!!This is for Virtue BackEnd Administration!!!!!!!!!!!!!!!!!!!!!
resource "aws_instance" "ncc_virtue-admin2" {
ami = "ami-c6ad16b9" // This ami is preinstalled with virtue-admin base ami is "ami-71b7750b" there is a new one ami-4f87273
instance_type = "t2.xlarge"
key_name = "vrtu"
subnet_id = "${module.vpc.public_1a_id}"
vpc_security_group_ids = ["${aws_security_group.virtue_open_all.id}", "${aws_security_group.virtue_internalports_dev_sg.id}" ]
iam_instance_profile = "SAVIOR_ADMIN_SERVER"
root_block_device {
volume_type = "gp2"
volume_size = "120"
delete_on_termination = true
}
tags {
Name = "Virtue BackEnd Admin 2"
}
lifecycle {
prevent_destroy = false
}
}
resource "aws_instance" "all-c5IntegrationInstanceTemp" {
ami = "ami-0f1f4100f5cc27c78"
instance_type = "t3.medium"
key_name = "virginiatech_ec2"
#vpc_security_group_ids = ["sg-dd5104af"]
subnet_id = "subnet-3171986d" #"${module.vpc.public_1a_id}"
vpc_security_group_ids = ["sg-fb7adab3", "sg-c1d38a88", "${aws_security_group.default_sg.id}", "${aws_security_group.virtue_internalports_dev_sg.id}"]
associate_public_ip_address = true
root_block_device {
volume_type = "gp2"
volume_size = "120"
delete_on_termination = true
}
tags {
Name = "NCC Xen Image Configure 4.18-owner "
}
lifecycle {
prevent_destroy = false
ignore_changes = ["user_data"]
}
}
resource "aws_instance" "ncc_dev_win" {
ami = "ami-04410717f23954994" // VirtueIntegrationWindows2_v1_20180522_0405am_apl
instance_type = "t2.large"
key_name = "vrtu"
subnet_id = "${module.vpc.public_1a_id}"
vpc_security_group_ids = ["${aws_security_group.default_sg.id}", "${ aws_security_group.virtue_internalports_dev_sg.id}", "${ aws_security_group.virtue_twosix_dev_sg.id}", "${ aws_security_group.rdp_sg.id}", "${aws_security_group.virtue_VTinternalports_dev_sg.id}"]
tags {
Name = "NCC Windows Dev Box - owner"
}
lifecycle {
prevent_destroy = false
}
}
resource "aws_instance" "ncc_virtue-syslogredirect" {
ami = "ami-0f1f1c12347a0736e"
instance_type = "t3.medium"
key_name = "vrtu"
subnet_id = "${module.vpc.public_1a_id}"
vpc_security_group_ids = ["${aws_security_group.virtue_open_all.id}"]
root_block_device {
volume_type = "gp2"
volume_size = "80"
delete_on_termination = true
}
tags {
Name = "NCC Virtue Syslog Redirect - owner"
}
}
resource "aws_instance" "ncc_virtue_admin" {
ami = "ami-0ac019f4fcb7cb7e6"
instance_type = "t3.large"
key_name = "vrtu"
subnet_id = "${module.vpc.public_1a_id}"
vpc_security_group_ids = ["${aws_security_group.virtue_open_all.id}", "${aws_security_group.virtue_internalports_dev_sg.id}"]
iam_instance_profile = "SAVIOR_ADMIN_SERVER"
disable_api_termination = true
root_block_device {
volume_type = "gp2"
volume_size = "80"
delete_on_termination = true
}
tags {
Name = "NCC Virtue Admin with CIF - owner"
}
}
resource "aws_instance" "ncc_virtue-adminworkbench" {
ami = "ami-0ac019f4fcb7cb7e6"
instance_type = "t3.medium"
key_name = "vrtu"
subnet_id = "${module.vpc.public_1a_id}"
vpc_security_group_ids = ["${aws_security_group.virtue_open_all.id}", "${aws_security_group.virtue_internalports_dev_sg.id}"]
root_block_device {
volume_type = "gp2"
volume_size = "120"
delete_on_termination = true
}
tags {
Name = "NCC Virtue Admin Workbench - owner"
}
}
resource "aws_instance" "all-t3IntegrationDom0Instance_master" {
ami = "ami-0cba37c29a34aea81"
instance_type = "t3.medium"
key_name = "virginiatech_ec2"
subnet_id = "${module.vpc.public_1a_id}"
vpc_security_group_ids = ["sg-0df52ca023344f1dc","sg-01fa789e839e9445e", "${aws_security_group.default_sg.id}", "${aws_security_group.virtue_internalports_dev_sg.id}", "${aws_security_group.virtue_testportforwarding_dev_sg.id}"]
iam_instance_profile = "S3FullAccess"
disable_api_termination = "true"
root_block_device {
volume_type = "gp2"
volume_size = "120"
delete_on_termination = true
}
tags {
Name = "NCC Xen Image Configure - owner"
}
lifecycle {
prevent_destroy = false
ignore_changes = ["user_data"]
}
}
resource "aws_route53_record" "sensing-api" {
zone_id = "${aws_route53_zone.savior.zone_id}"
name = "sensing-api.savior.internal"
type = "CNAME"
ttl = "300"
records = ["${aws_instance.twoSix_virtue_monitor_master2.private_dns}"]
}
resource "aws_route53_record" "sensing-ca" {
zone_id = "${aws_route53_zone.savior.zone_id}"
name = "sensing-ca.savior.internal"
type = "CNAME"
ttl = "300"
records = ["${aws_instance.twoSix_virtue_monitor_master2.private_dns}"]
}
resource "aws_route53_record" "sensing-kafka" {
zone_id = "${aws_route53_zone.savior.zone_id}"
name = "sensing-kafka.savior.internal"
type = "CNAME"
ttl = "300"
records = ["${aws_instance.twoSix_virtue_monitor_master2.private_dns}"]
}
//!!!!!!!!!!!!!!!!! End of TwoSix Instance !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!