@aws-solutions-constructs/aws-fargate-stepfunctions 2.51.0 → 2.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/.eslintignore +2 -0
  2. package/.jsii +49 -4
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +10 -9
  6. package/test/integ.farstp-new-resources.js +6 -2
  7. package/test/integ.farstp-new-resources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  8. package/test/integ.farstp-new-resources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  9. package/test/integ.farstp-new-resources.js.snapshot/cdk.out +1 -0
  10. package/test/integ.farstp-new-resources.js.snapshot/farstp-new-resources.assets.json +34 -0
  11. package/test/integ.farstp-new-resources.js.snapshot/farstp-new-resources.template.json +1361 -0
  12. package/test/integ.farstp-new-resources.js.snapshot/farstpnewresourcesIntegDefaultTestDeployAssert36B3414D.assets.json +19 -0
  13. package/test/integ.farstp-new-resources.js.snapshot/farstpnewresourcesIntegDefaultTestDeployAssert36B3414D.template.json +36 -0
  14. package/test/integ.farstp-new-resources.js.snapshot/integ.json +12 -0
  15. package/test/integ.farstp-new-resources.js.snapshot/manifest.json +407 -0
  16. package/test/integ.farstp-new-resources.js.snapshot/tree.json +1963 -0
  17. package/test/integ.farstp-no-cloudwatch-alarms.js +6 -2
  18. package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  19. package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  20. package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/cdk.out +1 -0
  21. package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/farstp-no-cloudwatch-alarms.assets.json +34 -0
  22. package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/farstp-no-cloudwatch-alarms.template.json +1298 -0
  23. package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/farstpnocloudwatchalarmsIntegDefaultTestDeployAssertC4578F22.assets.json +19 -0
  24. package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/farstpnocloudwatchalarmsIntegDefaultTestDeployAssertC4578F22.template.json +36 -0
  25. package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/integ.json +12 -0
  26. package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/manifest.json +389 -0
  27. package/test/integ.farstp-no-cloudwatch-alarms.js.snapshot/tree.json +1846 -0
  28. package/test/integ.farstp-new-resources.expected.json +0 -1398
  29. package/test/integ.farstp-no-cloudwatch-alarms.expected.json +0 -1335
@@ -1,1335 +0,0 @@
1
- {
2
- "Description": "Integration Test with existing VPC and Service and a new state machine with no CloudWatch alarms",
3
- "Resources": {
4
- "Vpc8378EB38": {
5
- "Type": "AWS::EC2::VPC",
6
- "Properties": {
7
- "CidrBlock": "172.168.0.0/16",
8
- "EnableDnsHostnames": true,
9
- "EnableDnsSupport": true,
10
- "InstanceTenancy": "default",
11
- "Tags": [
12
- {
13
- "Key": "Name",
14
- "Value": "farstp-no-cloudwatch-alarms/Vpc"
15
- }
16
- ]
17
- }
18
- },
19
- "VpcPublicSubnet1Subnet5C2D37C4": {
20
- "Type": "AWS::EC2::Subnet",
21
- "Properties": {
22
- "AvailabilityZone": "test-region-1a",
23
- "CidrBlock": "172.168.0.0/19",
24
- "MapPublicIpOnLaunch": true,
25
- "Tags": [
26
- {
27
- "Key": "aws-cdk:subnet-name",
28
- "Value": "Public"
29
- },
30
- {
31
- "Key": "aws-cdk:subnet-type",
32
- "Value": "Public"
33
- },
34
- {
35
- "Key": "Name",
36
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet1"
37
- }
38
- ],
39
- "VpcId": {
40
- "Ref": "Vpc8378EB38"
41
- }
42
- },
43
- "Metadata": {
44
- "cfn_nag": {
45
- "rules_to_suppress": [
46
- {
47
- "id": "W33",
48
- "reason": "Allow Public Subnets to have MapPublicIpOnLaunch set to true"
49
- }
50
- ]
51
- }
52
- }
53
- },
54
- "VpcPublicSubnet1RouteTable6C95E38E": {
55
- "Type": "AWS::EC2::RouteTable",
56
- "Properties": {
57
- "Tags": [
58
- {
59
- "Key": "Name",
60
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet1"
61
- }
62
- ],
63
- "VpcId": {
64
- "Ref": "Vpc8378EB38"
65
- }
66
- }
67
- },
68
- "VpcPublicSubnet1RouteTableAssociation97140677": {
69
- "Type": "AWS::EC2::SubnetRouteTableAssociation",
70
- "Properties": {
71
- "RouteTableId": {
72
- "Ref": "VpcPublicSubnet1RouteTable6C95E38E"
73
- },
74
- "SubnetId": {
75
- "Ref": "VpcPublicSubnet1Subnet5C2D37C4"
76
- }
77
- }
78
- },
79
- "VpcPublicSubnet1DefaultRoute3DA9E72A": {
80
- "Type": "AWS::EC2::Route",
81
- "Properties": {
82
- "DestinationCidrBlock": "0.0.0.0/0",
83
- "GatewayId": {
84
- "Ref": "VpcIGWD7BA715C"
85
- },
86
- "RouteTableId": {
87
- "Ref": "VpcPublicSubnet1RouteTable6C95E38E"
88
- }
89
- },
90
- "DependsOn": [
91
- "VpcVPCGWBF912B6E"
92
- ]
93
- },
94
- "VpcPublicSubnet1EIPD7E02669": {
95
- "Type": "AWS::EC2::EIP",
96
- "Properties": {
97
- "Domain": "vpc",
98
- "Tags": [
99
- {
100
- "Key": "Name",
101
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet1"
102
- }
103
- ]
104
- }
105
- },
106
- "VpcPublicSubnet1NATGateway4D7517AA": {
107
- "Type": "AWS::EC2::NatGateway",
108
- "Properties": {
109
- "AllocationId": {
110
- "Fn::GetAtt": [
111
- "VpcPublicSubnet1EIPD7E02669",
112
- "AllocationId"
113
- ]
114
- },
115
- "SubnetId": {
116
- "Ref": "VpcPublicSubnet1Subnet5C2D37C4"
117
- },
118
- "Tags": [
119
- {
120
- "Key": "Name",
121
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet1"
122
- }
123
- ]
124
- },
125
- "DependsOn": [
126
- "VpcPublicSubnet1DefaultRoute3DA9E72A",
127
- "VpcPublicSubnet1RouteTableAssociation97140677"
128
- ]
129
- },
130
- "VpcPublicSubnet2Subnet691E08A3": {
131
- "Type": "AWS::EC2::Subnet",
132
- "Properties": {
133
- "AvailabilityZone": "test-region-1b",
134
- "CidrBlock": "172.168.32.0/19",
135
- "MapPublicIpOnLaunch": true,
136
- "Tags": [
137
- {
138
- "Key": "aws-cdk:subnet-name",
139
- "Value": "Public"
140
- },
141
- {
142
- "Key": "aws-cdk:subnet-type",
143
- "Value": "Public"
144
- },
145
- {
146
- "Key": "Name",
147
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet2"
148
- }
149
- ],
150
- "VpcId": {
151
- "Ref": "Vpc8378EB38"
152
- }
153
- },
154
- "Metadata": {
155
- "cfn_nag": {
156
- "rules_to_suppress": [
157
- {
158
- "id": "W33",
159
- "reason": "Allow Public Subnets to have MapPublicIpOnLaunch set to true"
160
- }
161
- ]
162
- }
163
- }
164
- },
165
- "VpcPublicSubnet2RouteTable94F7E489": {
166
- "Type": "AWS::EC2::RouteTable",
167
- "Properties": {
168
- "Tags": [
169
- {
170
- "Key": "Name",
171
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet2"
172
- }
173
- ],
174
- "VpcId": {
175
- "Ref": "Vpc8378EB38"
176
- }
177
- }
178
- },
179
- "VpcPublicSubnet2RouteTableAssociationDD5762D8": {
180
- "Type": "AWS::EC2::SubnetRouteTableAssociation",
181
- "Properties": {
182
- "RouteTableId": {
183
- "Ref": "VpcPublicSubnet2RouteTable94F7E489"
184
- },
185
- "SubnetId": {
186
- "Ref": "VpcPublicSubnet2Subnet691E08A3"
187
- }
188
- }
189
- },
190
- "VpcPublicSubnet2DefaultRoute97F91067": {
191
- "Type": "AWS::EC2::Route",
192
- "Properties": {
193
- "DestinationCidrBlock": "0.0.0.0/0",
194
- "GatewayId": {
195
- "Ref": "VpcIGWD7BA715C"
196
- },
197
- "RouteTableId": {
198
- "Ref": "VpcPublicSubnet2RouteTable94F7E489"
199
- }
200
- },
201
- "DependsOn": [
202
- "VpcVPCGWBF912B6E"
203
- ]
204
- },
205
- "VpcPublicSubnet2EIP3C605A87": {
206
- "Type": "AWS::EC2::EIP",
207
- "Properties": {
208
- "Domain": "vpc",
209
- "Tags": [
210
- {
211
- "Key": "Name",
212
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet2"
213
- }
214
- ]
215
- }
216
- },
217
- "VpcPublicSubnet2NATGateway9182C01D": {
218
- "Type": "AWS::EC2::NatGateway",
219
- "Properties": {
220
- "AllocationId": {
221
- "Fn::GetAtt": [
222
- "VpcPublicSubnet2EIP3C605A87",
223
- "AllocationId"
224
- ]
225
- },
226
- "SubnetId": {
227
- "Ref": "VpcPublicSubnet2Subnet691E08A3"
228
- },
229
- "Tags": [
230
- {
231
- "Key": "Name",
232
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet2"
233
- }
234
- ]
235
- },
236
- "DependsOn": [
237
- "VpcPublicSubnet2DefaultRoute97F91067",
238
- "VpcPublicSubnet2RouteTableAssociationDD5762D8"
239
- ]
240
- },
241
- "VpcPublicSubnet3SubnetBE12F0B6": {
242
- "Type": "AWS::EC2::Subnet",
243
- "Properties": {
244
- "AvailabilityZone": "test-region-1c",
245
- "CidrBlock": "172.168.64.0/19",
246
- "MapPublicIpOnLaunch": true,
247
- "Tags": [
248
- {
249
- "Key": "aws-cdk:subnet-name",
250
- "Value": "Public"
251
- },
252
- {
253
- "Key": "aws-cdk:subnet-type",
254
- "Value": "Public"
255
- },
256
- {
257
- "Key": "Name",
258
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet3"
259
- }
260
- ],
261
- "VpcId": {
262
- "Ref": "Vpc8378EB38"
263
- }
264
- },
265
- "Metadata": {
266
- "cfn_nag": {
267
- "rules_to_suppress": [
268
- {
269
- "id": "W33",
270
- "reason": "Allow Public Subnets to have MapPublicIpOnLaunch set to true"
271
- }
272
- ]
273
- }
274
- }
275
- },
276
- "VpcPublicSubnet3RouteTable93458DBB": {
277
- "Type": "AWS::EC2::RouteTable",
278
- "Properties": {
279
- "Tags": [
280
- {
281
- "Key": "Name",
282
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet3"
283
- }
284
- ],
285
- "VpcId": {
286
- "Ref": "Vpc8378EB38"
287
- }
288
- }
289
- },
290
- "VpcPublicSubnet3RouteTableAssociation1F1EDF02": {
291
- "Type": "AWS::EC2::SubnetRouteTableAssociation",
292
- "Properties": {
293
- "RouteTableId": {
294
- "Ref": "VpcPublicSubnet3RouteTable93458DBB"
295
- },
296
- "SubnetId": {
297
- "Ref": "VpcPublicSubnet3SubnetBE12F0B6"
298
- }
299
- }
300
- },
301
- "VpcPublicSubnet3DefaultRoute4697774F": {
302
- "Type": "AWS::EC2::Route",
303
- "Properties": {
304
- "DestinationCidrBlock": "0.0.0.0/0",
305
- "GatewayId": {
306
- "Ref": "VpcIGWD7BA715C"
307
- },
308
- "RouteTableId": {
309
- "Ref": "VpcPublicSubnet3RouteTable93458DBB"
310
- }
311
- },
312
- "DependsOn": [
313
- "VpcVPCGWBF912B6E"
314
- ]
315
- },
316
- "VpcPublicSubnet3EIP3A666A23": {
317
- "Type": "AWS::EC2::EIP",
318
- "Properties": {
319
- "Domain": "vpc",
320
- "Tags": [
321
- {
322
- "Key": "Name",
323
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet3"
324
- }
325
- ]
326
- }
327
- },
328
- "VpcPublicSubnet3NATGateway7640CD1D": {
329
- "Type": "AWS::EC2::NatGateway",
330
- "Properties": {
331
- "AllocationId": {
332
- "Fn::GetAtt": [
333
- "VpcPublicSubnet3EIP3A666A23",
334
- "AllocationId"
335
- ]
336
- },
337
- "SubnetId": {
338
- "Ref": "VpcPublicSubnet3SubnetBE12F0B6"
339
- },
340
- "Tags": [
341
- {
342
- "Key": "Name",
343
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PublicSubnet3"
344
- }
345
- ]
346
- },
347
- "DependsOn": [
348
- "VpcPublicSubnet3DefaultRoute4697774F",
349
- "VpcPublicSubnet3RouteTableAssociation1F1EDF02"
350
- ]
351
- },
352
- "VpcPrivateSubnet1Subnet536B997A": {
353
- "Type": "AWS::EC2::Subnet",
354
- "Properties": {
355
- "AvailabilityZone": "test-region-1a",
356
- "CidrBlock": "172.168.96.0/19",
357
- "MapPublicIpOnLaunch": false,
358
- "Tags": [
359
- {
360
- "Key": "aws-cdk:subnet-name",
361
- "Value": "Private"
362
- },
363
- {
364
- "Key": "aws-cdk:subnet-type",
365
- "Value": "Private"
366
- },
367
- {
368
- "Key": "Name",
369
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PrivateSubnet1"
370
- }
371
- ],
372
- "VpcId": {
373
- "Ref": "Vpc8378EB38"
374
- }
375
- }
376
- },
377
- "VpcPrivateSubnet1RouteTableB2C5B500": {
378
- "Type": "AWS::EC2::RouteTable",
379
- "Properties": {
380
- "Tags": [
381
- {
382
- "Key": "Name",
383
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PrivateSubnet1"
384
- }
385
- ],
386
- "VpcId": {
387
- "Ref": "Vpc8378EB38"
388
- }
389
- }
390
- },
391
- "VpcPrivateSubnet1RouteTableAssociation70C59FA6": {
392
- "Type": "AWS::EC2::SubnetRouteTableAssociation",
393
- "Properties": {
394
- "RouteTableId": {
395
- "Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
396
- },
397
- "SubnetId": {
398
- "Ref": "VpcPrivateSubnet1Subnet536B997A"
399
- }
400
- }
401
- },
402
- "VpcPrivateSubnet1DefaultRouteBE02A9ED": {
403
- "Type": "AWS::EC2::Route",
404
- "Properties": {
405
- "DestinationCidrBlock": "0.0.0.0/0",
406
- "NatGatewayId": {
407
- "Ref": "VpcPublicSubnet1NATGateway4D7517AA"
408
- },
409
- "RouteTableId": {
410
- "Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
411
- }
412
- }
413
- },
414
- "VpcPrivateSubnet2Subnet3788AAA1": {
415
- "Type": "AWS::EC2::Subnet",
416
- "Properties": {
417
- "AvailabilityZone": "test-region-1b",
418
- "CidrBlock": "172.168.128.0/19",
419
- "MapPublicIpOnLaunch": false,
420
- "Tags": [
421
- {
422
- "Key": "aws-cdk:subnet-name",
423
- "Value": "Private"
424
- },
425
- {
426
- "Key": "aws-cdk:subnet-type",
427
- "Value": "Private"
428
- },
429
- {
430
- "Key": "Name",
431
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PrivateSubnet2"
432
- }
433
- ],
434
- "VpcId": {
435
- "Ref": "Vpc8378EB38"
436
- }
437
- }
438
- },
439
- "VpcPrivateSubnet2RouteTableA678073B": {
440
- "Type": "AWS::EC2::RouteTable",
441
- "Properties": {
442
- "Tags": [
443
- {
444
- "Key": "Name",
445
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PrivateSubnet2"
446
- }
447
- ],
448
- "VpcId": {
449
- "Ref": "Vpc8378EB38"
450
- }
451
- }
452
- },
453
- "VpcPrivateSubnet2RouteTableAssociationA89CAD56": {
454
- "Type": "AWS::EC2::SubnetRouteTableAssociation",
455
- "Properties": {
456
- "RouteTableId": {
457
- "Ref": "VpcPrivateSubnet2RouteTableA678073B"
458
- },
459
- "SubnetId": {
460
- "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
461
- }
462
- }
463
- },
464
- "VpcPrivateSubnet2DefaultRoute060D2087": {
465
- "Type": "AWS::EC2::Route",
466
- "Properties": {
467
- "DestinationCidrBlock": "0.0.0.0/0",
468
- "NatGatewayId": {
469
- "Ref": "VpcPublicSubnet2NATGateway9182C01D"
470
- },
471
- "RouteTableId": {
472
- "Ref": "VpcPrivateSubnet2RouteTableA678073B"
473
- }
474
- }
475
- },
476
- "VpcPrivateSubnet3SubnetF258B56E": {
477
- "Type": "AWS::EC2::Subnet",
478
- "Properties": {
479
- "AvailabilityZone": "test-region-1c",
480
- "CidrBlock": "172.168.160.0/19",
481
- "MapPublicIpOnLaunch": false,
482
- "Tags": [
483
- {
484
- "Key": "aws-cdk:subnet-name",
485
- "Value": "Private"
486
- },
487
- {
488
- "Key": "aws-cdk:subnet-type",
489
- "Value": "Private"
490
- },
491
- {
492
- "Key": "Name",
493
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PrivateSubnet3"
494
- }
495
- ],
496
- "VpcId": {
497
- "Ref": "Vpc8378EB38"
498
- }
499
- }
500
- },
501
- "VpcPrivateSubnet3RouteTableD98824C7": {
502
- "Type": "AWS::EC2::RouteTable",
503
- "Properties": {
504
- "Tags": [
505
- {
506
- "Key": "Name",
507
- "Value": "farstp-no-cloudwatch-alarms/Vpc/PrivateSubnet3"
508
- }
509
- ],
510
- "VpcId": {
511
- "Ref": "Vpc8378EB38"
512
- }
513
- }
514
- },
515
- "VpcPrivateSubnet3RouteTableAssociation16BDDC43": {
516
- "Type": "AWS::EC2::SubnetRouteTableAssociation",
517
- "Properties": {
518
- "RouteTableId": {
519
- "Ref": "VpcPrivateSubnet3RouteTableD98824C7"
520
- },
521
- "SubnetId": {
522
- "Ref": "VpcPrivateSubnet3SubnetF258B56E"
523
- }
524
- }
525
- },
526
- "VpcPrivateSubnet3DefaultRoute94B74F0D": {
527
- "Type": "AWS::EC2::Route",
528
- "Properties": {
529
- "DestinationCidrBlock": "0.0.0.0/0",
530
- "NatGatewayId": {
531
- "Ref": "VpcPublicSubnet3NATGateway7640CD1D"
532
- },
533
- "RouteTableId": {
534
- "Ref": "VpcPrivateSubnet3RouteTableD98824C7"
535
- }
536
- }
537
- },
538
- "VpcIGWD7BA715C": {
539
- "Type": "AWS::EC2::InternetGateway",
540
- "Properties": {
541
- "Tags": [
542
- {
543
- "Key": "Name",
544
- "Value": "farstp-no-cloudwatch-alarms/Vpc"
545
- }
546
- ]
547
- }
548
- },
549
- "VpcVPCGWBF912B6E": {
550
- "Type": "AWS::EC2::VPCGatewayAttachment",
551
- "Properties": {
552
- "InternetGatewayId": {
553
- "Ref": "VpcIGWD7BA715C"
554
- },
555
- "VpcId": {
556
- "Ref": "Vpc8378EB38"
557
- }
558
- }
559
- },
560
- "VpcFlowLogIAMRole6A475D41": {
561
- "Type": "AWS::IAM::Role",
562
- "Properties": {
563
- "AssumeRolePolicyDocument": {
564
- "Statement": [
565
- {
566
- "Action": "sts:AssumeRole",
567
- "Effect": "Allow",
568
- "Principal": {
569
- "Service": "vpc-flow-logs.amazonaws.com"
570
- }
571
- }
572
- ],
573
- "Version": "2012-10-17"
574
- },
575
- "Tags": [
576
- {
577
- "Key": "Name",
578
- "Value": "farstp-no-cloudwatch-alarms/Vpc/FlowLog"
579
- }
580
- ]
581
- }
582
- },
583
- "VpcFlowLogIAMRoleDefaultPolicy406FB995": {
584
- "Type": "AWS::IAM::Policy",
585
- "Properties": {
586
- "PolicyDocument": {
587
- "Statement": [
588
- {
589
- "Action": [
590
- "logs:CreateLogStream",
591
- "logs:PutLogEvents",
592
- "logs:DescribeLogStreams"
593
- ],
594
- "Effect": "Allow",
595
- "Resource": {
596
- "Fn::GetAtt": [
597
- "VpcFlowLogLogGroup7B5C56B9",
598
- "Arn"
599
- ]
600
- }
601
- },
602
- {
603
- "Action": "iam:PassRole",
604
- "Effect": "Allow",
605
- "Resource": {
606
- "Fn::GetAtt": [
607
- "VpcFlowLogIAMRole6A475D41",
608
- "Arn"
609
- ]
610
- }
611
- }
612
- ],
613
- "Version": "2012-10-17"
614
- },
615
- "PolicyName": "VpcFlowLogIAMRoleDefaultPolicy406FB995",
616
- "Roles": [
617
- {
618
- "Ref": "VpcFlowLogIAMRole6A475D41"
619
- }
620
- ]
621
- }
622
- },
623
- "VpcFlowLogLogGroup7B5C56B9": {
624
- "Type": "AWS::Logs::LogGroup",
625
- "Properties": {
626
- "RetentionInDays": 731,
627
- "Tags": [
628
- {
629
- "Key": "Name",
630
- "Value": "farstp-no-cloudwatch-alarms/Vpc/FlowLog"
631
- }
632
- ]
633
- },
634
- "UpdateReplacePolicy": "Retain",
635
- "DeletionPolicy": "Retain",
636
- "Metadata": {
637
- "cfn_nag": {
638
- "rules_to_suppress": [
639
- {
640
- "id": "W84",
641
- "reason": "By default CloudWatchLogs LogGroups data is encrypted using the CloudWatch server-side encryption keys (AWS Managed Keys)"
642
- }
643
- ]
644
- }
645
- }
646
- },
647
- "VpcFlowLog8FF33A73": {
648
- "Type": "AWS::EC2::FlowLog",
649
- "Properties": {
650
- "DeliverLogsPermissionArn": {
651
- "Fn::GetAtt": [
652
- "VpcFlowLogIAMRole6A475D41",
653
- "Arn"
654
- ]
655
- },
656
- "LogDestinationType": "cloud-watch-logs",
657
- "LogGroupName": {
658
- "Ref": "VpcFlowLogLogGroup7B5C56B9"
659
- },
660
- "ResourceId": {
661
- "Ref": "Vpc8378EB38"
662
- },
663
- "ResourceType": "VPC",
664
- "Tags": [
665
- {
666
- "Key": "Name",
667
- "Value": "farstp-no-cloudwatch-alarms/Vpc/FlowLog"
668
- }
669
- ],
670
- "TrafficType": "ALL"
671
- }
672
- },
673
- "VpcECRAPI9A3B6A2B": {
674
- "Type": "AWS::EC2::VPCEndpoint",
675
- "Properties": {
676
- "PrivateDnsEnabled": true,
677
- "SecurityGroupIds": [
678
- {
679
- "Fn::GetAtt": [
680
- "farstpnocloudwatchalarmsECRAPIsecuritygroup82DA60D3",
681
- "GroupId"
682
- ]
683
- }
684
- ],
685
- "ServiceName": "com.amazonaws.us-east-1.ecr.api",
686
- "SubnetIds": [
687
- {
688
- "Ref": "VpcPrivateSubnet1Subnet536B997A"
689
- },
690
- {
691
- "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
692
- },
693
- {
694
- "Ref": "VpcPrivateSubnet3SubnetF258B56E"
695
- }
696
- ],
697
- "VpcEndpointType": "Interface",
698
- "VpcId": {
699
- "Ref": "Vpc8378EB38"
700
- }
701
- }
702
- },
703
- "VpcECRDKR604E039F": {
704
- "Type": "AWS::EC2::VPCEndpoint",
705
- "Properties": {
706
- "PrivateDnsEnabled": true,
707
- "SecurityGroupIds": [
708
- {
709
- "Fn::GetAtt": [
710
- "farstpnocloudwatchalarmsECRDKRsecuritygroup230C35AF",
711
- "GroupId"
712
- ]
713
- }
714
- ],
715
- "ServiceName": "com.amazonaws.us-east-1.ecr.dkr",
716
- "SubnetIds": [
717
- {
718
- "Ref": "VpcPrivateSubnet1Subnet536B997A"
719
- },
720
- {
721
- "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
722
- },
723
- {
724
- "Ref": "VpcPrivateSubnet3SubnetF258B56E"
725
- }
726
- ],
727
- "VpcEndpointType": "Interface",
728
- "VpcId": {
729
- "Ref": "Vpc8378EB38"
730
- }
731
- }
732
- },
733
- "VpcS3A5408339": {
734
- "Type": "AWS::EC2::VPCEndpoint",
735
- "Properties": {
736
- "RouteTableIds": [
737
- {
738
- "Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
739
- },
740
- {
741
- "Ref": "VpcPrivateSubnet2RouteTableA678073B"
742
- },
743
- {
744
- "Ref": "VpcPrivateSubnet3RouteTableD98824C7"
745
- },
746
- {
747
- "Ref": "VpcPublicSubnet1RouteTable6C95E38E"
748
- },
749
- {
750
- "Ref": "VpcPublicSubnet2RouteTable94F7E489"
751
- },
752
- {
753
- "Ref": "VpcPublicSubnet3RouteTable93458DBB"
754
- }
755
- ],
756
- "ServiceName": {
757
- "Fn::Join": [
758
- "",
759
- [
760
- "com.amazonaws.",
761
- {
762
- "Ref": "AWS::Region"
763
- },
764
- ".s3"
765
- ]
766
- ]
767
- },
768
- "VpcEndpointType": "Gateway",
769
- "VpcId": {
770
- "Ref": "Vpc8378EB38"
771
- }
772
- }
773
- },
774
- "VpcSTEPFUNCTIONS550F8CB6": {
775
- "Type": "AWS::EC2::VPCEndpoint",
776
- "Properties": {
777
- "PrivateDnsEnabled": true,
778
- "SecurityGroupIds": [
779
- {
780
- "Fn::GetAtt": [
781
- "farstpnocloudwatchalarmsSTEPFUNCTIONSsecuritygroup08C40421",
782
- "GroupId"
783
- ]
784
- }
785
- ],
786
- "ServiceName": "com.amazonaws.us-east-1.states",
787
- "SubnetIds": [
788
- {
789
- "Ref": "VpcPrivateSubnet1Subnet536B997A"
790
- },
791
- {
792
- "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
793
- },
794
- {
795
- "Ref": "VpcPrivateSubnet3SubnetF258B56E"
796
- }
797
- ],
798
- "VpcEndpointType": "Interface",
799
- "VpcId": {
800
- "Ref": "Vpc8378EB38"
801
- }
802
- }
803
- },
804
- "farstpnocloudwatchalarmsECRAPIsecuritygroup82DA60D3": {
805
- "Type": "AWS::EC2::SecurityGroup",
806
- "Properties": {
807
- "GroupDescription": "farstp-no-cloudwatch-alarms/farstp-no-cloudwatch-alarms-ECR_API-security-group",
808
- "SecurityGroupEgress": [
809
- {
810
- "CidrIp": "0.0.0.0/0",
811
- "Description": "Allow all outbound traffic by default",
812
- "IpProtocol": "-1"
813
- }
814
- ],
815
- "SecurityGroupIngress": [
816
- {
817
- "CidrIp": {
818
- "Fn::GetAtt": [
819
- "Vpc8378EB38",
820
- "CidrBlock"
821
- ]
822
- },
823
- "Description": {
824
- "Fn::Join": [
825
- "",
826
- [
827
- "from ",
828
- {
829
- "Fn::GetAtt": [
830
- "Vpc8378EB38",
831
- "CidrBlock"
832
- ]
833
- },
834
- ":443"
835
- ]
836
- ]
837
- },
838
- "FromPort": 443,
839
- "IpProtocol": "tcp",
840
- "ToPort": 443
841
- }
842
- ],
843
- "VpcId": {
844
- "Ref": "Vpc8378EB38"
845
- }
846
- },
847
- "Metadata": {
848
- "cfn_nag": {
849
- "rules_to_suppress": [
850
- {
851
- "id": "W5",
852
- "reason": "Egress of 0.0.0.0/0 is default and generally considered OK"
853
- },
854
- {
855
- "id": "W40",
856
- "reason": "Egress IPProtocol of -1 is default and generally considered OK"
857
- }
858
- ]
859
- }
860
- }
861
- },
862
- "farstpnocloudwatchalarmsECRDKRsecuritygroup230C35AF": {
863
- "Type": "AWS::EC2::SecurityGroup",
864
- "Properties": {
865
- "GroupDescription": "farstp-no-cloudwatch-alarms/farstp-no-cloudwatch-alarms-ECR_DKR-security-group",
866
- "SecurityGroupEgress": [
867
- {
868
- "CidrIp": "0.0.0.0/0",
869
- "Description": "Allow all outbound traffic by default",
870
- "IpProtocol": "-1"
871
- }
872
- ],
873
- "SecurityGroupIngress": [
874
- {
875
- "CidrIp": {
876
- "Fn::GetAtt": [
877
- "Vpc8378EB38",
878
- "CidrBlock"
879
- ]
880
- },
881
- "Description": {
882
- "Fn::Join": [
883
- "",
884
- [
885
- "from ",
886
- {
887
- "Fn::GetAtt": [
888
- "Vpc8378EB38",
889
- "CidrBlock"
890
- ]
891
- },
892
- ":443"
893
- ]
894
- ]
895
- },
896
- "FromPort": 443,
897
- "IpProtocol": "tcp",
898
- "ToPort": 443
899
- }
900
- ],
901
- "VpcId": {
902
- "Ref": "Vpc8378EB38"
903
- }
904
- },
905
- "Metadata": {
906
- "cfn_nag": {
907
- "rules_to_suppress": [
908
- {
909
- "id": "W5",
910
- "reason": "Egress of 0.0.0.0/0 is default and generally considered OK"
911
- },
912
- {
913
- "id": "W40",
914
- "reason": "Egress IPProtocol of -1 is default and generally considered OK"
915
- }
916
- ]
917
- }
918
- }
919
- },
920
- "testclusterDF8B0D19": {
921
- "Type": "AWS::ECS::Cluster"
922
- },
923
- "testtaskdefTaskRoleB2DEF113": {
924
- "Type": "AWS::IAM::Role",
925
- "Properties": {
926
- "AssumeRolePolicyDocument": {
927
- "Statement": [
928
- {
929
- "Action": "sts:AssumeRole",
930
- "Effect": "Allow",
931
- "Principal": {
932
- "Service": "ecs-tasks.amazonaws.com"
933
- }
934
- }
935
- ],
936
- "Version": "2012-10-17"
937
- }
938
- }
939
- },
940
- "testtaskdefTaskRoleDefaultPolicy5D591D1C": {
941
- "Type": "AWS::IAM::Policy",
942
- "Properties": {
943
- "PolicyDocument": {
944
- "Statement": [
945
- {
946
- "Action": "states:StartExecution",
947
- "Effect": "Allow",
948
- "Resource": {
949
- "Ref": "testconstructStateMachine3333AAA9"
950
- }
951
- }
952
- ],
953
- "Version": "2012-10-17"
954
- },
955
- "PolicyName": "testtaskdefTaskRoleDefaultPolicy5D591D1C",
956
- "Roles": [
957
- {
958
- "Ref": "testtaskdefTaskRoleB2DEF113"
959
- }
960
- ]
961
- }
962
- },
963
- "testtaskdefF924AD58": {
964
- "Type": "AWS::ECS::TaskDefinition",
965
- "Properties": {
966
- "ContainerDefinitions": [
967
- {
968
- "Environment": [
969
- {
970
- "Name": "STATE_MACHINE_ARN",
971
- "Value": {
972
- "Ref": "testconstructStateMachine3333AAA9"
973
- }
974
- }
975
- ],
976
- "Essential": true,
977
- "Image": "nginx",
978
- "MemoryReservation": 512,
979
- "Name": "test-container",
980
- "PortMappings": [
981
- {
982
- "ContainerPort": 8080,
983
- "Protocol": "tcp"
984
- }
985
- ]
986
- }
987
- ],
988
- "Cpu": "256",
989
- "Family": "farstpnocloudwatchalarmstesttaskdef4B93DE32",
990
- "Memory": "512",
991
- "NetworkMode": "awsvpc",
992
- "RequiresCompatibilities": [
993
- "FARGATE"
994
- ],
995
- "TaskRoleArn": {
996
- "Fn::GetAtt": [
997
- "testtaskdefTaskRoleB2DEF113",
998
- "Arn"
999
- ]
1000
- }
1001
- }
1002
- },
1003
- "testsg872EB48A": {
1004
- "Type": "AWS::EC2::SecurityGroup",
1005
- "Properties": {
1006
- "GroupDescription": "Construct created security group",
1007
- "SecurityGroupEgress": [
1008
- {
1009
- "CidrIp": "0.0.0.0/0",
1010
- "Description": "Allow all outbound traffic by default",
1011
- "IpProtocol": "-1"
1012
- }
1013
- ],
1014
- "VpcId": {
1015
- "Ref": "Vpc8378EB38"
1016
- }
1017
- },
1018
- "Metadata": {
1019
- "cfn_nag": {
1020
- "rules_to_suppress": [
1021
- {
1022
- "id": "W5",
1023
- "reason": "Egress of 0.0.0.0/0 is default and generally considered OK"
1024
- },
1025
- {
1026
- "id": "W40",
1027
- "reason": "Egress IPProtocol of -1 is default and generally considered OK"
1028
- }
1029
- ]
1030
- }
1031
- }
1032
- },
1033
- "testserviceService2730C249": {
1034
- "Type": "AWS::ECS::Service",
1035
- "Properties": {
1036
- "Cluster": {
1037
- "Ref": "testclusterDF8B0D19"
1038
- },
1039
- "DeploymentConfiguration": {
1040
- "Alarms": {
1041
- "AlarmNames": [],
1042
- "Enable": false,
1043
- "Rollback": false
1044
- },
1045
- "MaximumPercent": 150,
1046
- "MinimumHealthyPercent": 75
1047
- },
1048
- "DesiredCount": 2,
1049
- "EnableECSManagedTags": false,
1050
- "LaunchType": "FARGATE",
1051
- "NetworkConfiguration": {
1052
- "AwsvpcConfiguration": {
1053
- "AssignPublicIp": "DISABLED",
1054
- "SecurityGroups": [
1055
- {
1056
- "Fn::GetAtt": [
1057
- "testsg872EB48A",
1058
- "GroupId"
1059
- ]
1060
- }
1061
- ],
1062
- "Subnets": [
1063
- {
1064
- "Ref": "VpcPrivateSubnet1Subnet536B997A"
1065
- },
1066
- {
1067
- "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
1068
- },
1069
- {
1070
- "Ref": "VpcPrivateSubnet3SubnetF258B56E"
1071
- }
1072
- ]
1073
- }
1074
- },
1075
- "PlatformVersion": "LATEST",
1076
- "TaskDefinition": {
1077
- "Ref": "testtaskdefF924AD58"
1078
- }
1079
- },
1080
- "DependsOn": [
1081
- "testtaskdefTaskRoleDefaultPolicy5D591D1C",
1082
- "testtaskdefTaskRoleB2DEF113"
1083
- ]
1084
- },
1085
- "testconstructStateMachineLogGroup2EB4F48B": {
1086
- "Type": "AWS::Logs::LogGroup",
1087
- "Properties": {
1088
- "LogGroupName": {
1089
- "Fn::Join": [
1090
- "",
1091
- [
1092
- "/aws/vendedlogs/states/constructs/farstp-no-cloudwatch-alarmstest-constructStateMachineLog-",
1093
- {
1094
- "Fn::Select": [
1095
- 2,
1096
- {
1097
- "Fn::Split": [
1098
- "/",
1099
- {
1100
- "Ref": "AWS::StackId"
1101
- }
1102
- ]
1103
- }
1104
- ]
1105
- }
1106
- ]
1107
- ]
1108
- }
1109
- },
1110
- "UpdateReplacePolicy": "Delete",
1111
- "DeletionPolicy": "Delete",
1112
- "Metadata": {
1113
- "cfn_nag": {
1114
- "rules_to_suppress": [
1115
- {
1116
- "id": "W86",
1117
- "reason": "Retention period for CloudWatchLogs LogGroups are set to 'Never Expire' to preserve customer data indefinitely"
1118
- },
1119
- {
1120
- "id": "W84",
1121
- "reason": "By default CloudWatchLogs LogGroups data is encrypted using the CloudWatch server-side encryption keys (AWS Managed Keys)"
1122
- }
1123
- ]
1124
- }
1125
- }
1126
- },
1127
- "testconstructStateMachineRoleA396E5D3": {
1128
- "Type": "AWS::IAM::Role",
1129
- "Properties": {
1130
- "AssumeRolePolicyDocument": {
1131
- "Statement": [
1132
- {
1133
- "Action": "sts:AssumeRole",
1134
- "Effect": "Allow",
1135
- "Principal": {
1136
- "Service": "states.us-east-1.amazonaws.com"
1137
- }
1138
- }
1139
- ],
1140
- "Version": "2012-10-17"
1141
- }
1142
- }
1143
- },
1144
- "testconstructStateMachineRoleDefaultPolicyF10A684E": {
1145
- "Type": "AWS::IAM::Policy",
1146
- "Properties": {
1147
- "PolicyDocument": {
1148
- "Statement": [
1149
- {
1150
- "Action": [
1151
- "logs:CreateLogDelivery",
1152
- "logs:GetLogDelivery",
1153
- "logs:UpdateLogDelivery",
1154
- "logs:DeleteLogDelivery",
1155
- "logs:ListLogDeliveries"
1156
- ],
1157
- "Effect": "Allow",
1158
- "Resource": "*"
1159
- },
1160
- {
1161
- "Action": [
1162
- "logs:PutResourcePolicy",
1163
- "logs:DescribeResourcePolicies",
1164
- "logs:DescribeLogGroups"
1165
- ],
1166
- "Effect": "Allow",
1167
- "Resource": {
1168
- "Fn::Join": [
1169
- "",
1170
- [
1171
- "arn:",
1172
- {
1173
- "Ref": "AWS::Partition"
1174
- },
1175
- ":logs:",
1176
- {
1177
- "Ref": "AWS::Region"
1178
- },
1179
- ":",
1180
- {
1181
- "Ref": "AWS::AccountId"
1182
- },
1183
- ":*"
1184
- ]
1185
- ]
1186
- }
1187
- }
1188
- ],
1189
- "Version": "2012-10-17"
1190
- },
1191
- "PolicyName": "testconstructStateMachineRoleDefaultPolicyF10A684E",
1192
- "Roles": [
1193
- {
1194
- "Ref": "testconstructStateMachineRoleA396E5D3"
1195
- }
1196
- ]
1197
- },
1198
- "Metadata": {
1199
- "cfn_nag": {
1200
- "rules_to_suppress": [
1201
- {
1202
- "id": "W12",
1203
- "reason": "The 'LogDelivery' actions do not support resource-level authorizations"
1204
- }
1205
- ]
1206
- }
1207
- }
1208
- },
1209
- "testconstructStateMachine3333AAA9": {
1210
- "Type": "AWS::StepFunctions::StateMachine",
1211
- "Properties": {
1212
- "DefinitionString": "{\"StartAt\":\"StartState\",\"States\":{\"StartState\":{\"Type\":\"Pass\",\"End\":true}}}",
1213
- "LoggingConfiguration": {
1214
- "Destinations": [
1215
- {
1216
- "CloudWatchLogsLogGroup": {
1217
- "LogGroupArn": {
1218
- "Fn::GetAtt": [
1219
- "testconstructStateMachineLogGroup2EB4F48B",
1220
- "Arn"
1221
- ]
1222
- }
1223
- }
1224
- }
1225
- ],
1226
- "Level": "ERROR"
1227
- },
1228
- "RoleArn": {
1229
- "Fn::GetAtt": [
1230
- "testconstructStateMachineRoleA396E5D3",
1231
- "Arn"
1232
- ]
1233
- }
1234
- },
1235
- "DependsOn": [
1236
- "testconstructStateMachineRoleDefaultPolicyF10A684E",
1237
- "testconstructStateMachineRoleA396E5D3"
1238
- ],
1239
- "UpdateReplacePolicy": "Delete",
1240
- "DeletionPolicy": "Delete"
1241
- },
1242
- "farstpnocloudwatchalarmsSTEPFUNCTIONSsecuritygroup08C40421": {
1243
- "Type": "AWS::EC2::SecurityGroup",
1244
- "Properties": {
1245
- "GroupDescription": "farstp-no-cloudwatch-alarms/farstp-no-cloudwatch-alarms-STEP_FUNCTIONS-security-group",
1246
- "SecurityGroupEgress": [
1247
- {
1248
- "CidrIp": "0.0.0.0/0",
1249
- "Description": "Allow all outbound traffic by default",
1250
- "IpProtocol": "-1"
1251
- }
1252
- ],
1253
- "SecurityGroupIngress": [
1254
- {
1255
- "CidrIp": {
1256
- "Fn::GetAtt": [
1257
- "Vpc8378EB38",
1258
- "CidrBlock"
1259
- ]
1260
- },
1261
- "Description": {
1262
- "Fn::Join": [
1263
- "",
1264
- [
1265
- "from ",
1266
- {
1267
- "Fn::GetAtt": [
1268
- "Vpc8378EB38",
1269
- "CidrBlock"
1270
- ]
1271
- },
1272
- ":443"
1273
- ]
1274
- ]
1275
- },
1276
- "FromPort": 443,
1277
- "IpProtocol": "tcp",
1278
- "ToPort": 443
1279
- }
1280
- ],
1281
- "VpcId": {
1282
- "Ref": "Vpc8378EB38"
1283
- }
1284
- },
1285
- "Metadata": {
1286
- "cfn_nag": {
1287
- "rules_to_suppress": [
1288
- {
1289
- "id": "W5",
1290
- "reason": "Egress of 0.0.0.0/0 is default and generally considered OK"
1291
- },
1292
- {
1293
- "id": "W40",
1294
- "reason": "Egress IPProtocol of -1 is default and generally considered OK"
1295
- }
1296
- ]
1297
- }
1298
- }
1299
- }
1300
- },
1301
- "Parameters": {
1302
- "BootstrapVersion": {
1303
- "Type": "AWS::SSM::Parameter::Value<String>",
1304
- "Default": "/cdk-bootstrap/hnb659fds/version",
1305
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
1306
- }
1307
- },
1308
- "Rules": {
1309
- "CheckBootstrapVersion": {
1310
- "Assertions": [
1311
- {
1312
- "Assert": {
1313
- "Fn::Not": [
1314
- {
1315
- "Fn::Contains": [
1316
- [
1317
- "1",
1318
- "2",
1319
- "3",
1320
- "4",
1321
- "5"
1322
- ],
1323
- {
1324
- "Ref": "BootstrapVersion"
1325
- }
1326
- ]
1327
- }
1328
- ]
1329
- },
1330
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
1331
- }
1332
- ]
1333
- }
1334
- }
1335
- }