· 6 years ago · Feb 07, 2020, 10:12 AM
1{
2 "AWSTemplateFormatVersion": "2010-09-09",
3 "Resources": {
4 "zonelocal": {
5 "Type": "AWS::Route53::HostedZone",
6 "Properties": {
7 "Name": "local.",
8 "HostedZoneConfig": {
9 "Comment": "Created by AWS Cloud Map namespace with ARN arn:aws:servicediscovery:eu-west-1:158741421593:namespace/ns-xnv3rncplr54olzm"
10 }
11 }
12 },
13 "vpc08a191d736bb1fc9d": {
14 "Type": "AWS::EC2::VPC",
15 "Properties": {
16 "CidrBlock": "172.31.0.0/16",
17 "InstanceTenancy": "default",
18 "EnableDnsSupport": "true",
19 "EnableDnsHostnames": "true"
20 }
21 },
22 "subnet0cfbb42f586e8c986": {
23 "Type": "AWS::EC2::Subnet",
24 "Properties": {
25 "CidrBlock": "172.31.64.0/20",
26 "AvailabilityZone": "eu-west-1b",
27 "VpcId": {
28 "Ref": "vpc08a191d736bb1fc9d"
29 },
30 "Tags": [
31 {
32 "Key": "Name",
33 "Value": "database-subnet-1b"
34 }
35 ]
36 }
37 },
38 "subnet07e71ac5accbfa463": {
39 "Type": "AWS::EC2::Subnet",
40 "Properties": {
41 "CidrBlock": "172.31.0.0/20",
42 "AvailabilityZone": "eu-west-1a",
43 "VpcId": {
44 "Ref": "vpc08a191d736bb1fc9d"
45 }
46 }
47 },
48 "subnet06b17c932a7e5dc94": {
49 "Type": "AWS::EC2::Subnet",
50 "Properties": {
51 "CidrBlock": "172.31.16.0/20",
52 "AvailabilityZone": "eu-west-1b",
53 "VpcId": {
54 "Ref": "vpc08a191d736bb1fc9d"
55 }
56 }
57 },
58 "subnet0cf3480c919629a7c": {
59 "Type": "AWS::EC2::Subnet",
60 "Properties": {
61 "CidrBlock": "10.10.10.0/24",
62 "AvailabilityZone": "eu-west-1a",
63 "VpcId": "vpc-034857df8d073e911",
64 "Tags": [
65 {
66 "Key": "takitag",
67 "Value": "takitag"
68 }
69 ]
70 }
71 },
72 "subnet02125b56319bf89a2": {
73 "Type": "AWS::EC2::Subnet",
74 "Properties": {
75 "CidrBlock": "172.31.48.0/20",
76 "AvailabilityZone": "eu-west-1a",
77 "VpcId": {
78 "Ref": "vpc08a191d736bb1fc9d"
79 },
80 "Tags": [
81 {
82 "Key": "Name",
83 "Value": "database-subnet-1a"
84 }
85 ]
86 }
87 },
88 "subnet06b41e9e18b42d0ae": {
89 "Type": "AWS::EC2::Subnet",
90 "Properties": {
91 "CidrBlock": "172.31.32.0/20",
92 "AvailabilityZone": "eu-west-1c",
93 "VpcId": {
94 "Ref": "vpc08a191d736bb1fc9d"
95 }
96 }
97 },
98 "igw02c894ef7a80065dc": {
99 "Type": "AWS::EC2::InternetGateway",
100 "Properties": {
101 }
102 },
103 "igw05ef4a58a117aefe8": {
104 "Type": "AWS::EC2::InternetGateway",
105 "Properties": {
106 "Tags": [
107 {
108 "Key": "takitag",
109 "Value": "takitag"
110 }
111 ]
112 }
113 },
114 "dopt861058e0": {
115 "Type": "AWS::EC2::DHCPOptions",
116 "Properties": {
117 "DomainName": "eu-west-1.compute.internal",
118 "DomainNameServers": [
119 "AmazonProvidedDNS"
120 ]
121 }
122 },
123 "acl02f9c804c550902f6": {
124 "Type": "AWS::EC2::NetworkAcl",
125 "Properties": {
126 "VpcId": {
127 "Ref": "vpc08a191d736bb1fc9d"
128 }
129 }
130 },
131 "rtb030849b4064151cbf": {
132 "Type": "AWS::EC2::RouteTable",
133 "Properties": {
134 "VpcId": {
135 "Ref": "vpc08a191d736bb1fc9d"
136 }
137 }
138 },
139 "rdsdatabase1": {
140 "Type": "AWS::RDS::DBInstance",
141 "Properties": {
142 "AllocatedStorage": "20",
143 "AllowMajorVersionUpgrade": "false",
144 "AutoMinorVersionUpgrade": "true",
145 "DBInstanceClass": "db.t2.micro",
146 "Port": "5432",
147 "PubliclyAccessible": "true",
148 "StorageType": "gp2",
149 "BackupRetentionPeriod": "7",
150 "MasterUsername": "postgres",
151 "MasterUserPassword": "MyPassword",
152 "PreferredBackupWindow": "02:27-02:57",
153 "PreferredMaintenanceWindow": "sun:22:22-sun:22:52",
154 "DBName": "MyDatabase",
155 "Engine": "postgres",
156 "EngineVersion": "11.5",
157 "LicenseModel": "postgresql-license",
158 "DBSubnetGroupName": {
159 "Ref": "dbsubnetrdssubnet"
160 },
161 "VPCSecurityGroups": [
162 {
163 "Ref": "sgpostgresqlsecuritygroup"
164 }
165 ]
166 }
167 },
168 "dbsubnetrdssubnet": {
169 "Type": "AWS::RDS::DBSubnetGroup",
170 "Properties": {
171 "DBSubnetGroupDescription": "Database for Stroeer Forecasting",
172 "SubnetIds": [
173 {
174 "Ref": "subnet02125b56319bf89a2"
175 },
176 {
177 "Ref": "subnet0cfbb42f586e8c986"
178 }
179 ]
180 }
181 },
182 "sgpostgresqlsecuritygroup": {
183 "Type": "AWS::EC2::SecurityGroup",
184 "Properties": {
185 "GroupDescription": "Created by RDS management console",
186 "VpcId": {
187 "Ref": "vpc08a191d736bb1fc9d"
188 }
189 }
190 },
191 "sgCopyoftcp8080sgall": {
192 "Type": "AWS::EC2::SecurityGroup",
193 "Properties": {
194 "GroupDescription": "security group for sf-booking-api",
195 "VpcId": {
196 "Ref": "vpc08a191d736bb1fc9d"
197 }
198 }
199 },
200 "sgtcp8080sg": {
201 "Type": "AWS::EC2::SecurityGroup",
202 "Properties": {
203 "GroupDescription": "security group for sf-booking-api",
204 "VpcId": {
205 "Ref": "vpc08a191d736bb1fc9d"
206 },
207 "Tags": [
208 {
209 "Key": "Name",
210 "Value": "klaster-sg"
211 }
212 ]
213 }
214 },
215 "sgryba9460": {
216 "Type": "AWS::EC2::SecurityGroup",
217 "Properties": {
218 "GroupDescription": "2019-12-13T13:08:58.550Z",
219 "VpcId": {
220 "Ref": "vpc08a191d736bb1fc9d"
221 },
222 "Tags": [
223 {
224 "Key": "Name",
225 "Value": "load-balancer-sg"
226 }
227 ]
228 }
229 },
230 "sgdefault": {
231 "Type": "AWS::EC2::SecurityGroup",
232 "Properties": {
233 "GroupDescription": "default VPC security group",
234 "VpcId": {
235 "Ref": "vpc08a191d736bb1fc9d"
236 }
237 }
238 },
239 "dbsgdefault": {
240 "Type": "AWS::RDS::DBSecurityGroup",
241 "Properties": {
242 "GroupDescription": "default"
243 }
244 },
245 "acl1": {
246 "Type": "AWS::EC2::NetworkAclEntry",
247 "Properties": {
248 "CidrBlock": "0.0.0.0/0",
249 "Egress": "true",
250 "Protocol": "-1",
251 "RuleAction": "allow",
252 "RuleNumber": "100",
253 "NetworkAclId": {
254 "Ref": "acl02f9c804c550902f6"
255 }
256 }
257 },
258 "acl2": {
259 "Type": "AWS::EC2::NetworkAclEntry",
260 "Properties": {
261 "CidrBlock": "0.0.0.0/0",
262 "Protocol": "-1",
263 "RuleAction": "allow",
264 "RuleNumber": "100",
265 "NetworkAclId": {
266 "Ref": "acl02f9c804c550902f6"
267 }
268 }
269 },
270 "subnetacl1": {
271 "Type": "AWS::EC2::SubnetNetworkAclAssociation",
272 "Properties": {
273 "NetworkAclId": {
274 "Ref": "acl02f9c804c550902f6"
275 },
276 "SubnetId": {
277 "Ref": "subnet06b17c932a7e5dc94"
278 }
279 }
280 },
281 "subnetacl2": {
282 "Type": "AWS::EC2::SubnetNetworkAclAssociation",
283 "Properties": {
284 "NetworkAclId": {
285 "Ref": "acl02f9c804c550902f6"
286 },
287 "SubnetId": {
288 "Ref": "subnet07e71ac5accbfa463"
289 }
290 }
291 },
292 "subnetacl3": {
293 "Type": "AWS::EC2::SubnetNetworkAclAssociation",
294 "Properties": {
295 "NetworkAclId": {
296 "Ref": "acl02f9c804c550902f6"
297 },
298 "SubnetId": {
299 "Ref": "subnet06b41e9e18b42d0ae"
300 }
301 }
302 },
303 "subnetacl4": {
304 "Type": "AWS::EC2::SubnetNetworkAclAssociation",
305 "Properties": {
306 "NetworkAclId": {
307 "Ref": "acl02f9c804c550902f6"
308 },
309 "SubnetId": {
310 "Ref": "subnet0cfbb42f586e8c986"
311 }
312 }
313 },
314 "subnetacl5": {
315 "Type": "AWS::EC2::SubnetNetworkAclAssociation",
316 "Properties": {
317 "NetworkAclId": {
318 "Ref": "acl02f9c804c550902f6"
319 },
320 "SubnetId": {
321 "Ref": "subnet02125b56319bf89a2"
322 }
323 }
324 },
325 "gw1": {
326 "Type": "AWS::EC2::VPCGatewayAttachment",
327 "Properties": {
328 "VpcId": {
329 "Ref": "vpc08a191d736bb1fc9d"
330 },
331 "InternetGatewayId": {
332 "Ref": "igw02c894ef7a80065dc"
333 }
334 }
335 },
336 "gw2": {
337 "Type": "AWS::EC2::VPCGatewayAttachment",
338 "Properties": {
339 "VpcId": "vpc-034857df8d073e911",
340 "InternetGatewayId": {
341 "Ref": "igw05ef4a58a117aefe8"
342 }
343 }
344 },
345 "route1": {
346 "Type": "AWS::EC2::Route",
347 "Properties": {
348 "DestinationCidrBlock": "0.0.0.0/0",
349 "RouteTableId": {
350 "Ref": "rtb030849b4064151cbf"
351 },
352 "GatewayId": {
353 "Ref": "igw02c894ef7a80065dc"
354 }
355 },
356 "DependsOn": "gw1"
357 },
358 "dchpassoc1": {
359 "Type": "AWS::EC2::VPCDHCPOptionsAssociation",
360 "Properties": {
361 "VpcId": {
362 "Ref": "vpc08a191d736bb1fc9d"
363 },
364 "DhcpOptionsId": {
365 "Ref": "dopt861058e0"
366 }
367 }
368 },
369 "ingress1": {
370 "Type": "AWS::EC2::SecurityGroupIngress",
371 "Properties": {
372 "GroupId": {
373 "Ref": "sgpostgresqlsecuritygroup"
374 },
375 "IpProtocol": "tcp",
376 "FromPort": "5432",
377 "ToPort": "5432",
378 "CidrIp": "0.0.0.0/0"
379 }
380 },
381 "ingress2": {
382 "Type": "AWS::EC2::SecurityGroupIngress",
383 "Properties": {
384 "GroupId": {
385 "Ref": "sgCopyoftcp8080sgall"
386 },
387 "IpProtocol": "tcp",
388 "FromPort": "8080",
389 "ToPort": "8080",
390 "CidrIp": "0.0.0.0/0"
391 }
392 },
393 "ingress3": {
394 "Type": "AWS::EC2::SecurityGroupIngress",
395 "Properties": {
396 "GroupId": {
397 "Ref": "sgtcp8080sg"
398 },
399 "IpProtocol": "tcp",
400 "FromPort": "8080",
401 "ToPort": "8080",
402 "CidrIp": "0.0.0.0/0"
403 }
404 },
405 "ingress4": {
406 "Type": "AWS::EC2::SecurityGroupIngress",
407 "Properties": {
408 "GroupId": {
409 "Ref": "sgryba9460"
410 },
411 "IpProtocol": "tcp",
412 "FromPort": "80",
413 "ToPort": "80",
414 "CidrIp": "0.0.0.0/0"
415 }
416 },
417 "ingress5": {
418 "Type": "AWS::EC2::SecurityGroupIngress",
419 "Properties": {
420 "GroupId": {
421 "Ref": "sgdefault"
422 },
423 "IpProtocol": "-1",
424 "SourceSecurityGroupId": {
425 "Ref": "sgdefault"
426 },
427 "SourceSecurityGroupOwnerId": "158741421593"
428 }
429 },
430 "ingress6": {
431 "Type": "AWS::EC2::SecurityGroupIngress",
432 "Properties": {
433 "GroupId": {
434 "Ref": "sgdefault"
435 },
436 "IpProtocol": "-1",
437 "SourceSecurityGroupId": {
438 "Ref": "sgdefault"
439 },
440 "SourceSecurityGroupOwnerId": "158741421593"
441 }
442 },
443 "egress1": {
444 "Type": "AWS::EC2::SecurityGroupEgress",
445 "Properties": {
446 "GroupId": {
447 "Ref": "sgpostgresqlsecuritygroup"
448 },
449 "IpProtocol": "-1",
450 "CidrIp": "0.0.0.0/0"
451 }
452 },
453 "egress2": {
454 "Type": "AWS::EC2::SecurityGroupEgress",
455 "Properties": {
456 "GroupId": {
457 "Ref": "sgCopyoftcp8080sgall"
458 },
459 "IpProtocol": "-1",
460 "CidrIp": "0.0.0.0/0"
461 }
462 },
463 "egress3": {
464 "Type": "AWS::EC2::SecurityGroupEgress",
465 "Properties": {
466 "GroupId": {
467 "Ref": "sgtcp8080sg"
468 },
469 "IpProtocol": "-1",
470 "CidrIp": "0.0.0.0/0"
471 }
472 },
473 "egress4": {
474 "Type": "AWS::EC2::SecurityGroupEgress",
475 "Properties": {
476 "GroupId": {
477 "Ref": "sgryba9460"
478 },
479 "IpProtocol": "tcp",
480 "FromPort": "8080",
481 "ToPort": "8080",
482 "CidrIp": "0.0.0.0/0"
483 }
484 },
485 "egress5": {
486 "Type": "AWS::EC2::SecurityGroupEgress",
487 "Properties": {
488 "GroupId": {
489 "Ref": "sgdefault"
490 },
491 "IpProtocol": "-1",
492 "CidrIp": "0.0.0.0/0"
493 }
494 },
495 "egress6": {
496 "Type": "AWS::EC2::SecurityGroupEgress",
497 "Properties": {
498 "GroupId": {
499 "Ref": "sgdefault"
500 },
501 "IpProtocol": "-1",
502 "CidrIp": "0.0.0.0/0"
503 }
504 }
505 },
506 "Description": "Booking Api CloudFormation Template made with Cloud Former"
507}