@aws-solutions-constructs/aws-alb-lambda 2.51.0 → 2.52.0

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 (75) 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.alblam-privateApiExistingResources.js +7 -3
  7. package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblam-privateApiExistingResources.assets.json +62 -0
  8. package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblam-privateApiExistingResources.template.json +1332 -0
  9. package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.assets.json +19 -0
  10. package/test/integ.alblam-privateApiExistingResources.js.snapshot/alblamprivateApiExistingResourcesIntegDefaultTestDeployAssertC865AE59.template.json +36 -0
  11. package/test/integ.alblam-privateApiExistingResources.js.snapshot/asset.7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79/index.js +8 -0
  12. package/test/integ.alblam-privateApiExistingResources.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  13. package/test/integ.alblam-privateApiExistingResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  14. package/test/integ.alblam-privateApiExistingResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  15. package/test/integ.alblam-privateApiExistingResources.js.snapshot/cdk.out +1 -0
  16. package/test/integ.alblam-privateApiExistingResources.js.snapshot/integ.json +12 -0
  17. package/test/integ.alblam-privateApiExistingResources.js.snapshot/manifest.json +371 -0
  18. package/test/integ.alblam-privateApiExistingResources.js.snapshot/tree.json +1708 -0
  19. package/test/integ.alblam-privateApiNewResources.js +7 -3
  20. package/test/integ.alblam-privateApiNewResources.js.snapshot/alblam-privateApiNewResources.assets.json +62 -0
  21. package/test/integ.alblam-privateApiNewResources.js.snapshot/alblam-privateApiNewResources.template.json +1048 -0
  22. package/test/integ.alblam-privateApiNewResources.js.snapshot/alblamprivateApiNewResourcesIntegDefaultTestDeployAssertB0CCE59F.assets.json +19 -0
  23. package/test/integ.alblam-privateApiNewResources.js.snapshot/alblamprivateApiNewResourcesIntegDefaultTestDeployAssertB0CCE59F.template.json +36 -0
  24. package/test/integ.alblam-privateApiNewResources.js.snapshot/asset.7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79/index.js +8 -0
  25. package/test/integ.alblam-privateApiNewResources.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  26. package/test/integ.alblam-privateApiNewResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  27. package/test/integ.alblam-privateApiNewResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  28. package/test/integ.alblam-privateApiNewResources.js.snapshot/cdk.out +1 -0
  29. package/test/integ.alblam-privateApiNewResources.js.snapshot/integ.json +12 -0
  30. package/test/integ.alblam-privateApiNewResources.js.snapshot/manifest.json +275 -0
  31. package/test/integ.alblam-privateApiNewResources.js.snapshot/tree.json +1294 -0
  32. package/test/integ.alblam-publicApiExistingResources.js +7 -3
  33. package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblam-publicApiExistingResources.assets.json +62 -0
  34. package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblam-publicApiExistingResources.template.json +1332 -0
  35. package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblampublicApiExistingResourcesIntegDefaultTestDeployAssert22C8EEFD.assets.json +19 -0
  36. package/test/integ.alblam-publicApiExistingResources.js.snapshot/alblampublicApiExistingResourcesIntegDefaultTestDeployAssert22C8EEFD.template.json +36 -0
  37. package/test/integ.alblam-publicApiExistingResources.js.snapshot/asset.7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79/index.js +8 -0
  38. package/test/integ.alblam-publicApiExistingResources.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  39. package/test/integ.alblam-publicApiExistingResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  40. package/test/integ.alblam-publicApiExistingResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  41. package/test/integ.alblam-publicApiExistingResources.js.snapshot/cdk.out +1 -0
  42. package/test/integ.alblam-publicApiExistingResources.js.snapshot/integ.json +12 -0
  43. package/test/integ.alblam-publicApiExistingResources.js.snapshot/manifest.json +371 -0
  44. package/test/integ.alblam-publicApiExistingResources.js.snapshot/tree.json +1708 -0
  45. package/test/integ.alblam-publicApiNewResources.js +7 -3
  46. package/test/integ.alblam-publicApiNewResources.js.snapshot/alblam-publicApiNewResources.assets.json +62 -0
  47. package/test/integ.alblam-publicApiNewResources.js.snapshot/alblam-publicApiNewResources.template.json +1338 -0
  48. package/test/integ.alblam-publicApiNewResources.js.snapshot/alblampublicApiNewResourcesIntegDefaultTestDeployAssert43CC63D2.assets.json +19 -0
  49. package/test/integ.alblam-publicApiNewResources.js.snapshot/alblampublicApiNewResourcesIntegDefaultTestDeployAssert43CC63D2.template.json +36 -0
  50. package/test/integ.alblam-publicApiNewResources.js.snapshot/asset.7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79/index.js +8 -0
  51. package/test/integ.alblam-publicApiNewResources.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  52. package/test/integ.alblam-publicApiNewResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  53. package/test/integ.alblam-publicApiNewResources.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  54. package/test/integ.alblam-publicApiNewResources.js.snapshot/cdk.out +1 -0
  55. package/test/integ.alblam-publicApiNewResources.js.snapshot/integ.json +12 -0
  56. package/test/integ.alblam-publicApiNewResources.js.snapshot/manifest.json +371 -0
  57. package/test/integ.alblam-publicApiNewResources.js.snapshot/tree.json +1706 -0
  58. package/test/integ.alblam-twoTargets.js +7 -3
  59. package/test/integ.alblam-twoTargets.js.snapshot/alblam-twoTargets.assets.json +62 -0
  60. package/test/integ.alblam-twoTargets.js.snapshot/alblam-twoTargets.template.json +1598 -0
  61. package/test/integ.alblam-twoTargets.js.snapshot/alblamtwoTargetsIntegDefaultTestDeployAssert4F811416.assets.json +19 -0
  62. package/test/integ.alblam-twoTargets.js.snapshot/alblamtwoTargetsIntegDefaultTestDeployAssert4F811416.template.json +36 -0
  63. package/test/integ.alblam-twoTargets.js.snapshot/asset.7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79/index.js +8 -0
  64. package/test/integ.alblam-twoTargets.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  65. package/test/integ.alblam-twoTargets.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
  66. package/test/integ.alblam-twoTargets.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
  67. package/test/integ.alblam-twoTargets.js.snapshot/cdk.out +1 -0
  68. package/test/integ.alblam-twoTargets.js.snapshot/integ.json +12 -0
  69. package/test/integ.alblam-twoTargets.js.snapshot/manifest.json +413 -0
  70. package/test/integ.alblam-twoTargets.js.snapshot/tree.json +2067 -0
  71. package/test/integ.alblam-privateApiExistingResources.expected.json +0 -1378
  72. package/test/integ.alblam-privateApiNewResources.expected.json +0 -983
  73. package/test/integ.alblam-publicApiExistingResources.expected.json +0 -1378
  74. package/test/integ.alblam-publicApiNewResources.expected.json +0 -1386
  75. package/test/integ.alblam-twoTargets.expected.json +0 -1659
@@ -1,1378 +0,0 @@
1
- {
2
- "Description": "Integration Test for private HTTP API with a existing function and ALB",
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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/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": "alblam-privateApiExistingResources/Vpc/FlowLog"
668
- }
669
- ],
670
- "TrafficType": "ALL"
671
- }
672
- },
673
- "lambdasg93781054": {
674
- "Type": "AWS::EC2::SecurityGroup",
675
- "Properties": {
676
- "GroupDescription": "alblam-privateApiExistingResources/lambda-sg",
677
- "SecurityGroupEgress": [
678
- {
679
- "CidrIp": "255.255.255.255/32",
680
- "Description": "Disallow all traffic",
681
- "FromPort": 252,
682
- "IpProtocol": "icmp",
683
- "ToPort": 86
684
- }
685
- ],
686
- "VpcId": {
687
- "Ref": "Vpc8378EB38"
688
- }
689
- },
690
- "Metadata": {
691
- "cfn_nag": {
692
- "rules_to_suppress": [
693
- {
694
- "id": "W29",
695
- "reason": "CDK created rule that blocks all traffic."
696
- }
697
- ]
698
- }
699
- }
700
- },
701
- "LambdaFunctionServiceRole0C4CDE0B": {
702
- "Type": "AWS::IAM::Role",
703
- "Properties": {
704
- "AssumeRolePolicyDocument": {
705
- "Statement": [
706
- {
707
- "Action": "sts:AssumeRole",
708
- "Effect": "Allow",
709
- "Principal": {
710
- "Service": "lambda.amazonaws.com"
711
- }
712
- }
713
- ],
714
- "Version": "2012-10-17"
715
- },
716
- "Policies": [
717
- {
718
- "PolicyDocument": {
719
- "Statement": [
720
- {
721
- "Action": [
722
- "logs:CreateLogGroup",
723
- "logs:CreateLogStream",
724
- "logs:PutLogEvents"
725
- ],
726
- "Effect": "Allow",
727
- "Resource": {
728
- "Fn::Join": [
729
- "",
730
- [
731
- "arn:",
732
- {
733
- "Ref": "AWS::Partition"
734
- },
735
- ":logs:",
736
- {
737
- "Ref": "AWS::Region"
738
- },
739
- ":",
740
- {
741
- "Ref": "AWS::AccountId"
742
- },
743
- ":log-group:/aws/lambda/*"
744
- ]
745
- ]
746
- }
747
- }
748
- ],
749
- "Version": "2012-10-17"
750
- },
751
- "PolicyName": "LambdaFunctionServiceRolePolicy"
752
- }
753
- ]
754
- }
755
- },
756
- "LambdaFunctionServiceRoleDefaultPolicy126C8897": {
757
- "Type": "AWS::IAM::Policy",
758
- "Properties": {
759
- "PolicyDocument": {
760
- "Statement": [
761
- {
762
- "Action": [
763
- "ec2:CreateNetworkInterface",
764
- "ec2:DescribeNetworkInterfaces",
765
- "ec2:DeleteNetworkInterface",
766
- "ec2:AssignPrivateIpAddresses",
767
- "ec2:UnassignPrivateIpAddresses"
768
- ],
769
- "Effect": "Allow",
770
- "Resource": "*"
771
- },
772
- {
773
- "Action": [
774
- "xray:PutTraceSegments",
775
- "xray:PutTelemetryRecords"
776
- ],
777
- "Effect": "Allow",
778
- "Resource": "*"
779
- }
780
- ],
781
- "Version": "2012-10-17"
782
- },
783
- "PolicyName": "LambdaFunctionServiceRoleDefaultPolicy126C8897",
784
- "Roles": [
785
- {
786
- "Ref": "LambdaFunctionServiceRole0C4CDE0B"
787
- }
788
- ]
789
- },
790
- "Metadata": {
791
- "cfn_nag": {
792
- "rules_to_suppress": [
793
- {
794
- "id": "W12",
795
- "reason": "Lambda needs the following minimum required permissions to send trace data to X-Ray and access ENIs in a VPC."
796
- }
797
- ]
798
- }
799
- }
800
- },
801
- "LambdaFunctionBF21E41F": {
802
- "Type": "AWS::Lambda::Function",
803
- "Properties": {
804
- "Code": {
805
- "S3Bucket": {
806
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1"
807
- },
808
- "S3Key": "7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79.zip"
809
- },
810
- "Environment": {
811
- "Variables": {
812
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
813
- }
814
- },
815
- "Handler": "index.handler",
816
- "Role": {
817
- "Fn::GetAtt": [
818
- "LambdaFunctionServiceRole0C4CDE0B",
819
- "Arn"
820
- ]
821
- },
822
- "Runtime": "nodejs16.x",
823
- "TracingConfig": {
824
- "Mode": "Active"
825
- },
826
- "VpcConfig": {
827
- "SecurityGroupIds": [
828
- {
829
- "Fn::GetAtt": [
830
- "lambdasg93781054",
831
- "GroupId"
832
- ]
833
- }
834
- ],
835
- "SubnetIds": [
836
- {
837
- "Ref": "VpcPrivateSubnet1Subnet536B997A"
838
- },
839
- {
840
- "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
841
- },
842
- {
843
- "Ref": "VpcPrivateSubnet3SubnetF258B56E"
844
- }
845
- ]
846
- }
847
- },
848
- "DependsOn": [
849
- "LambdaFunctionServiceRoleDefaultPolicy126C8897",
850
- "LambdaFunctionServiceRole0C4CDE0B",
851
- "VpcPrivateSubnet1DefaultRouteBE02A9ED",
852
- "VpcPrivateSubnet1RouteTableAssociation70C59FA6",
853
- "VpcPrivateSubnet2DefaultRoute060D2087",
854
- "VpcPrivateSubnet2RouteTableAssociationA89CAD56",
855
- "VpcPrivateSubnet3DefaultRoute94B74F0D",
856
- "VpcPrivateSubnet3RouteTableAssociation16BDDC43"
857
- ],
858
- "Metadata": {
859
- "cfn_nag": {
860
- "rules_to_suppress": [
861
- {
862
- "id": "W58",
863
- "reason": "Lambda functions has the required permission to write CloudWatch Logs. It uses custom policy instead of arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole with tighter permissions."
864
- },
865
- {
866
- "id": "W89",
867
- "reason": "This is not a rule for the general case, just for specific use cases/industries"
868
- },
869
- {
870
- "id": "W92",
871
- "reason": "Impossible for us to define the correct concurrency for clients"
872
- }
873
- ]
874
- }
875
- }
876
- },
877
- "LambdaFunctionInvoke2UTWxhlfyqbT5FTn5jvgbLgjFfJwzswGk55DU1HYAD69E89D": {
878
- "Type": "AWS::Lambda::Permission",
879
- "Properties": {
880
- "Action": "lambda:InvokeFunction",
881
- "FunctionName": {
882
- "Fn::GetAtt": [
883
- "LambdaFunctionBF21E41F",
884
- "Arn"
885
- ]
886
- },
887
- "Principal": "elasticloadbalancing.amazonaws.com"
888
- },
889
- "DependsOn": [
890
- "VpcPrivateSubnet1DefaultRouteBE02A9ED",
891
- "VpcPrivateSubnet1RouteTableAssociation70C59FA6",
892
- "VpcPrivateSubnet2DefaultRoute060D2087",
893
- "VpcPrivateSubnet2RouteTableAssociationA89CAD56",
894
- "VpcPrivateSubnet3DefaultRoute94B74F0D",
895
- "VpcPrivateSubnet3RouteTableAssociation16BDDC43"
896
- ]
897
- },
898
- "existingalbalb3A941601": {
899
- "Type": "AWS::ElasticLoadBalancingV2::LoadBalancer",
900
- "Properties": {
901
- "LoadBalancerAttributes": [
902
- {
903
- "Key": "deletion_protection.enabled",
904
- "Value": "false"
905
- },
906
- {
907
- "Key": "access_logs.s3.enabled",
908
- "Value": "true"
909
- },
910
- {
911
- "Key": "access_logs.s3.bucket",
912
- "Value": {
913
- "Ref": "existingalb0F60CC48"
914
- }
915
- },
916
- {
917
- "Key": "access_logs.s3.prefix",
918
- "Value": ""
919
- }
920
- ],
921
- "Scheme": "internal",
922
- "SecurityGroups": [
923
- {
924
- "Fn::GetAtt": [
925
- "existingalbalbSecurityGroupC8DD2920",
926
- "GroupId"
927
- ]
928
- }
929
- ],
930
- "Subnets": [
931
- {
932
- "Ref": "VpcPrivateSubnet1Subnet536B997A"
933
- },
934
- {
935
- "Ref": "VpcPrivateSubnet2Subnet3788AAA1"
936
- },
937
- {
938
- "Ref": "VpcPrivateSubnet3SubnetF258B56E"
939
- }
940
- ],
941
- "Type": "application"
942
- },
943
- "DependsOn": [
944
- "existingalbPolicy6C7AF240"
945
- ]
946
- },
947
- "existingalbalbSecurityGroupC8DD2920": {
948
- "Type": "AWS::EC2::SecurityGroup",
949
- "Properties": {
950
- "GroupDescription": "Automatically created Security Group for ELB alblamprivateApiExistingResourcesexistingalbalb9103CE08",
951
- "SecurityGroupEgress": [
952
- {
953
- "CidrIp": "255.255.255.255/32",
954
- "Description": "Disallow all traffic",
955
- "FromPort": 252,
956
- "IpProtocol": "icmp",
957
- "ToPort": 86
958
- }
959
- ],
960
- "SecurityGroupIngress": [
961
- {
962
- "CidrIp": "0.0.0.0/0",
963
- "Description": "Allow from anyone on port 80",
964
- "FromPort": 80,
965
- "IpProtocol": "tcp",
966
- "ToPort": 80
967
- }
968
- ],
969
- "VpcId": {
970
- "Ref": "Vpc8378EB38"
971
- }
972
- },
973
- "Metadata": {
974
- "cfn_nag": {
975
- "rules_to_suppress": [
976
- {
977
- "id": "W29",
978
- "reason": "CDK created rule that blocks all traffic."
979
- },
980
- {
981
- "id": "W2",
982
- "reason": "Rule does not apply for ELB."
983
- },
984
- {
985
- "id": "W9",
986
- "reason": "Rule does not apply for ELB."
987
- }
988
- ]
989
- }
990
- }
991
- },
992
- "existingalb0F60CC48": {
993
- "Type": "AWS::S3::Bucket",
994
- "Properties": {
995
- "BucketEncryption": {
996
- "ServerSideEncryptionConfiguration": [
997
- {
998
- "ServerSideEncryptionByDefault": {
999
- "SSEAlgorithm": "AES256"
1000
- }
1001
- }
1002
- ]
1003
- },
1004
- "PublicAccessBlockConfiguration": {
1005
- "BlockPublicAcls": true,
1006
- "BlockPublicPolicy": true,
1007
- "IgnorePublicAcls": true,
1008
- "RestrictPublicBuckets": true
1009
- },
1010
- "Tags": [
1011
- {
1012
- "Key": "aws-cdk:auto-delete-objects",
1013
- "Value": "true"
1014
- }
1015
- ],
1016
- "VersioningConfiguration": {
1017
- "Status": "Enabled"
1018
- }
1019
- },
1020
- "UpdateReplacePolicy": "Delete",
1021
- "DeletionPolicy": "Delete",
1022
- "Metadata": {
1023
- "cfn_nag": {
1024
- "rules_to_suppress": [
1025
- {
1026
- "id": "W35",
1027
- "reason": "This is a log bucket for an Application Load Balancer"
1028
- }
1029
- ]
1030
- }
1031
- }
1032
- },
1033
- "existingalbPolicy6C7AF240": {
1034
- "Type": "AWS::S3::BucketPolicy",
1035
- "Properties": {
1036
- "Bucket": {
1037
- "Ref": "existingalb0F60CC48"
1038
- },
1039
- "PolicyDocument": {
1040
- "Statement": [
1041
- {
1042
- "Action": "s3:*",
1043
- "Condition": {
1044
- "Bool": {
1045
- "aws:SecureTransport": "false"
1046
- }
1047
- },
1048
- "Effect": "Deny",
1049
- "Principal": {
1050
- "AWS": "*"
1051
- },
1052
- "Resource": [
1053
- {
1054
- "Fn::GetAtt": [
1055
- "existingalb0F60CC48",
1056
- "Arn"
1057
- ]
1058
- },
1059
- {
1060
- "Fn::Join": [
1061
- "",
1062
- [
1063
- {
1064
- "Fn::GetAtt": [
1065
- "existingalb0F60CC48",
1066
- "Arn"
1067
- ]
1068
- },
1069
- "/*"
1070
- ]
1071
- ]
1072
- }
1073
- ]
1074
- },
1075
- {
1076
- "Action": [
1077
- "s3:PutBucketPolicy",
1078
- "s3:GetBucket*",
1079
- "s3:List*",
1080
- "s3:DeleteObject*"
1081
- ],
1082
- "Effect": "Allow",
1083
- "Principal": {
1084
- "AWS": {
1085
- "Fn::GetAtt": [
1086
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
1087
- "Arn"
1088
- ]
1089
- }
1090
- },
1091
- "Resource": [
1092
- {
1093
- "Fn::GetAtt": [
1094
- "existingalb0F60CC48",
1095
- "Arn"
1096
- ]
1097
- },
1098
- {
1099
- "Fn::Join": [
1100
- "",
1101
- [
1102
- {
1103
- "Fn::GetAtt": [
1104
- "existingalb0F60CC48",
1105
- "Arn"
1106
- ]
1107
- },
1108
- "/*"
1109
- ]
1110
- ]
1111
- }
1112
- ]
1113
- },
1114
- {
1115
- "Action": "s3:PutObject",
1116
- "Effect": "Allow",
1117
- "Principal": {
1118
- "AWS": {
1119
- "Fn::Join": [
1120
- "",
1121
- [
1122
- "arn:",
1123
- {
1124
- "Ref": "AWS::Partition"
1125
- },
1126
- ":iam::127311923021:root"
1127
- ]
1128
- ]
1129
- }
1130
- },
1131
- "Resource": {
1132
- "Fn::Join": [
1133
- "",
1134
- [
1135
- {
1136
- "Fn::GetAtt": [
1137
- "existingalb0F60CC48",
1138
- "Arn"
1139
- ]
1140
- },
1141
- "/AWSLogs/",
1142
- {
1143
- "Ref": "AWS::AccountId"
1144
- },
1145
- "/*"
1146
- ]
1147
- ]
1148
- }
1149
- },
1150
- {
1151
- "Action": "s3:PutObject",
1152
- "Condition": {
1153
- "StringEquals": {
1154
- "s3:x-amz-acl": "bucket-owner-full-control"
1155
- }
1156
- },
1157
- "Effect": "Allow",
1158
- "Principal": {
1159
- "Service": "delivery.logs.amazonaws.com"
1160
- },
1161
- "Resource": {
1162
- "Fn::Join": [
1163
- "",
1164
- [
1165
- {
1166
- "Fn::GetAtt": [
1167
- "existingalb0F60CC48",
1168
- "Arn"
1169
- ]
1170
- },
1171
- "/AWSLogs/",
1172
- {
1173
- "Ref": "AWS::AccountId"
1174
- },
1175
- "/*"
1176
- ]
1177
- ]
1178
- }
1179
- },
1180
- {
1181
- "Action": "s3:GetBucketAcl",
1182
- "Effect": "Allow",
1183
- "Principal": {
1184
- "Service": "delivery.logs.amazonaws.com"
1185
- },
1186
- "Resource": {
1187
- "Fn::GetAtt": [
1188
- "existingalb0F60CC48",
1189
- "Arn"
1190
- ]
1191
- }
1192
- }
1193
- ],
1194
- "Version": "2012-10-17"
1195
- }
1196
- }
1197
- },
1198
- "existingalbAutoDeleteObjectsCustomResource67152080": {
1199
- "Type": "Custom::S3AutoDeleteObjects",
1200
- "Properties": {
1201
- "ServiceToken": {
1202
- "Fn::GetAtt": [
1203
- "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F",
1204
- "Arn"
1205
- ]
1206
- },
1207
- "BucketName": {
1208
- "Ref": "existingalb0F60CC48"
1209
- }
1210
- },
1211
- "DependsOn": [
1212
- "existingalbPolicy6C7AF240"
1213
- ],
1214
- "UpdateReplacePolicy": "Delete",
1215
- "DeletionPolicy": "Delete"
1216
- },
1217
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": {
1218
- "Type": "AWS::IAM::Role",
1219
- "Properties": {
1220
- "AssumeRolePolicyDocument": {
1221
- "Version": "2012-10-17",
1222
- "Statement": [
1223
- {
1224
- "Action": "sts:AssumeRole",
1225
- "Effect": "Allow",
1226
- "Principal": {
1227
- "Service": "lambda.amazonaws.com"
1228
- }
1229
- }
1230
- ]
1231
- },
1232
- "ManagedPolicyArns": [
1233
- {
1234
- "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
1235
- }
1236
- ]
1237
- }
1238
- },
1239
- "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": {
1240
- "Type": "AWS::Lambda::Function",
1241
- "Properties": {
1242
- "Code": {
1243
- "S3Bucket": {
1244
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1"
1245
- },
1246
- "S3Key": "b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6.zip"
1247
- },
1248
- "Timeout": 900,
1249
- "MemorySize": 128,
1250
- "Handler": "index.handler",
1251
- "Role": {
1252
- "Fn::GetAtt": [
1253
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
1254
- "Arn"
1255
- ]
1256
- },
1257
- "Runtime": "nodejs18.x",
1258
- "Description": {
1259
- "Fn::Join": [
1260
- "",
1261
- [
1262
- "Lambda function for auto-deleting objects in ",
1263
- {
1264
- "Ref": "existingalb0F60CC48"
1265
- },
1266
- " S3 bucket."
1267
- ]
1268
- ]
1269
- }
1270
- },
1271
- "DependsOn": [
1272
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092"
1273
- ],
1274
- "Metadata": {
1275
- "cfn_nag": {
1276
- "rules_to_suppress": [
1277
- {
1278
- "id": "W58",
1279
- "reason": "CDK generated custom resource"
1280
- },
1281
- {
1282
- "id": "W89",
1283
- "reason": "CDK generated custom resource"
1284
- },
1285
- {
1286
- "id": "W92",
1287
- "reason": "CDK generated custom resource"
1288
- }
1289
- ]
1290
- }
1291
- }
1292
- },
1293
- "testonetestonelistener51CF582F": {
1294
- "Type": "AWS::ElasticLoadBalancingV2::Listener",
1295
- "Properties": {
1296
- "DefaultActions": [
1297
- {
1298
- "TargetGroupArn": {
1299
- "Ref": "testonetg2tg6459EC7C"
1300
- },
1301
- "Type": "forward"
1302
- }
1303
- ],
1304
- "LoadBalancerArn": {
1305
- "Ref": "existingalbalb3A941601"
1306
- },
1307
- "Port": 80,
1308
- "Protocol": "HTTP"
1309
- },
1310
- "DependsOn": [
1311
- "testonetg2tg6459EC7C"
1312
- ],
1313
- "Metadata": {
1314
- "cfn_nag": {
1315
- "rules_to_suppress": [
1316
- {
1317
- "id": "W56",
1318
- "reason": "All integration tests must be HTTP because of certificate limitations."
1319
- }
1320
- ]
1321
- }
1322
- }
1323
- },
1324
- "testonetg2tg6459EC7C": {
1325
- "Type": "AWS::ElasticLoadBalancingV2::TargetGroup",
1326
- "Properties": {
1327
- "TargetType": "lambda",
1328
- "Targets": [
1329
- {
1330
- "Id": {
1331
- "Fn::GetAtt": [
1332
- "LambdaFunctionBF21E41F",
1333
- "Arn"
1334
- ]
1335
- }
1336
- }
1337
- ]
1338
- },
1339
- "DependsOn": [
1340
- "LambdaFunctionInvoke2UTWxhlfyqbT5FTn5jvgbLgjFfJwzswGk55DU1HYAD69E89D"
1341
- ]
1342
- }
1343
- },
1344
- "Parameters": {
1345
- "BootstrapVersion": {
1346
- "Type": "AWS::SSM::Parameter::Value<String>",
1347
- "Default": "/cdk-bootstrap/hnb659fds/version",
1348
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
1349
- }
1350
- },
1351
- "Rules": {
1352
- "CheckBootstrapVersion": {
1353
- "Assertions": [
1354
- {
1355
- "Assert": {
1356
- "Fn::Not": [
1357
- {
1358
- "Fn::Contains": [
1359
- [
1360
- "1",
1361
- "2",
1362
- "3",
1363
- "4",
1364
- "5"
1365
- ],
1366
- {
1367
- "Ref": "BootstrapVersion"
1368
- }
1369
- ]
1370
- }
1371
- ]
1372
- },
1373
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
1374
- }
1375
- ]
1376
- }
1377
- }
1378
- }