@aws-solutions-constructs/aws-apigateway-lambda 2.79.0 → 2.80.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.
@@ -0,0 +1,637 @@
1
+ {
2
+ "Description": "Integration Test for aws-apigateway-lambda",
3
+ "Resources": {
4
+ "testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7": {
5
+ "Type": "AWS::IAM::Role",
6
+ "Properties": {
7
+ "AssumeRolePolicyDocument": {
8
+ "Statement": [
9
+ {
10
+ "Action": "sts:AssumeRole",
11
+ "Effect": "Allow",
12
+ "Principal": {
13
+ "Service": "lambda.amazonaws.com"
14
+ }
15
+ }
16
+ ],
17
+ "Version": "2012-10-17"
18
+ },
19
+ "Policies": [
20
+ {
21
+ "PolicyDocument": {
22
+ "Statement": [
23
+ {
24
+ "Action": [
25
+ "logs:CreateLogGroup",
26
+ "logs:CreateLogStream",
27
+ "logs:PutLogEvents"
28
+ ],
29
+ "Effect": "Allow",
30
+ "Resource": {
31
+ "Fn::Join": [
32
+ "",
33
+ [
34
+ "arn:",
35
+ {
36
+ "Ref": "AWS::Partition"
37
+ },
38
+ ":logs:",
39
+ {
40
+ "Ref": "AWS::Region"
41
+ },
42
+ ":",
43
+ {
44
+ "Ref": "AWS::AccountId"
45
+ },
46
+ ":log-group:/aws/lambda/*"
47
+ ]
48
+ ]
49
+ }
50
+ }
51
+ ],
52
+ "Version": "2012-10-17"
53
+ },
54
+ "PolicyName": "LambdaFunctionServiceRolePolicy"
55
+ }
56
+ ]
57
+ },
58
+ "Metadata": {
59
+ "guard": {
60
+ "SuppressedRules": [
61
+ "IAM_NO_INLINE_POLICY_CHECK"
62
+ ]
63
+ }
64
+ }
65
+ },
66
+ "testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32": {
67
+ "Type": "AWS::IAM::Policy",
68
+ "Properties": {
69
+ "PolicyDocument": {
70
+ "Statement": [
71
+ {
72
+ "Action": [
73
+ "xray:PutTelemetryRecords",
74
+ "xray:PutTraceSegments"
75
+ ],
76
+ "Effect": "Allow",
77
+ "Resource": "*"
78
+ }
79
+ ],
80
+ "Version": "2012-10-17"
81
+ },
82
+ "PolicyName": "testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32",
83
+ "Roles": [
84
+ {
85
+ "Ref": "testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7"
86
+ }
87
+ ]
88
+ },
89
+ "Metadata": {
90
+ "cfn_nag": {
91
+ "rules_to_suppress": [
92
+ {
93
+ "id": "W12",
94
+ "reason": "Lambda needs the following minimum required permissions to send trace data to X-Ray and access ENIs in a VPC."
95
+ }
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ "testapigatewaylambdaLambdaFunction18FF222F": {
101
+ "Type": "AWS::Lambda::Function",
102
+ "Properties": {
103
+ "Code": {
104
+ "S3Bucket": {
105
+ "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
106
+ },
107
+ "S3Key": "0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f.zip"
108
+ },
109
+ "Environment": {
110
+ "Variables": {
111
+ "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
112
+ }
113
+ },
114
+ "Handler": "index.handler",
115
+ "Role": {
116
+ "Fn::GetAtt": [
117
+ "testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7",
118
+ "Arn"
119
+ ]
120
+ },
121
+ "Runtime": "nodejs20.x",
122
+ "TracingConfig": {
123
+ "Mode": "Active"
124
+ }
125
+ },
126
+ "DependsOn": [
127
+ "testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32",
128
+ "testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7"
129
+ ],
130
+ "Metadata": {
131
+ "cfn_nag": {
132
+ "rules_to_suppress": [
133
+ {
134
+ "id": "W58",
135
+ "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."
136
+ },
137
+ {
138
+ "id": "W89",
139
+ "reason": "This is not a rule for the general case, just for specific use cases/industries"
140
+ },
141
+ {
142
+ "id": "W92",
143
+ "reason": "Impossible for us to define the correct concurrency for clients"
144
+ }
145
+ ]
146
+ }
147
+ }
148
+ },
149
+ "testapigatewaylambdaApiAccessLogGroupEB3253A2": {
150
+ "Type": "AWS::Logs::LogGroup",
151
+ "UpdateReplacePolicy": "Retain",
152
+ "DeletionPolicy": "Retain",
153
+ "Metadata": {
154
+ "cfn_nag": {
155
+ "rules_to_suppress": [
156
+ {
157
+ "id": "W86",
158
+ "reason": "Retention period for CloudWatchLogs LogGroups are set to 'Never Expire' to preserve customer data indefinitely"
159
+ },
160
+ {
161
+ "id": "W84",
162
+ "reason": "By default CloudWatchLogs LogGroups data is encrypted using the CloudWatch server-side encryption keys (AWS Managed Keys)"
163
+ }
164
+ ]
165
+ }
166
+ }
167
+ },
168
+ "testapigatewaylambdaLambdaRestApiE957E944": {
169
+ "Type": "AWS::ApiGateway::RestApi",
170
+ "Properties": {
171
+ "EndpointConfiguration": {
172
+ "Types": [
173
+ "EDGE"
174
+ ]
175
+ },
176
+ "Name": "LambdaRestApi"
177
+ }
178
+ },
179
+ "testapigatewaylambdaLambdaRestApiDeployment85334BB3a1765c45928980e423727978265730d1": {
180
+ "Type": "AWS::ApiGateway::Deployment",
181
+ "Properties": {
182
+ "Description": "Automatically created by the RestApi construct",
183
+ "RestApiId": {
184
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
185
+ }
186
+ },
187
+ "DependsOn": [
188
+ "testapigatewaylambdaLambdaRestApiproxyANYF6150927",
189
+ "testapigatewaylambdaLambdaRestApiproxy2C2C544E",
190
+ "testapigatewaylambdaLambdaRestApiANY1FACA749"
191
+ ],
192
+ "Metadata": {
193
+ "cfn_nag": {
194
+ "rules_to_suppress": [
195
+ {
196
+ "id": "W45",
197
+ "reason": "ApiGateway has AccessLogging enabled in AWS::ApiGateway::Stage resource, but cfn_nag checks for it in AWS::ApiGateway::Deployment resource"
198
+ }
199
+ ]
200
+ }
201
+ }
202
+ },
203
+ "testapigatewaylambdaLambdaRestApiDeploymentStageprod4EBF7247": {
204
+ "Type": "AWS::ApiGateway::Stage",
205
+ "Properties": {
206
+ "AccessLogSetting": {
207
+ "DestinationArn": {
208
+ "Fn::GetAtt": [
209
+ "testapigatewaylambdaApiAccessLogGroupEB3253A2",
210
+ "Arn"
211
+ ]
212
+ },
213
+ "Format": "{\"requestId\":\"$context.requestId\",\"ip\":\"$context.identity.sourceIp\",\"user\":\"$context.identity.user\",\"caller\":\"$context.identity.caller\",\"requestTime\":\"$context.requestTime\",\"httpMethod\":\"$context.httpMethod\",\"resourcePath\":\"$context.resourcePath\",\"status\":\"$context.status\",\"protocol\":\"$context.protocol\",\"responseLength\":\"$context.responseLength\"}"
214
+ },
215
+ "DeploymentId": {
216
+ "Ref": "testapigatewaylambdaLambdaRestApiDeployment85334BB3a1765c45928980e423727978265730d1"
217
+ },
218
+ "MethodSettings": [
219
+ {
220
+ "DataTraceEnabled": false,
221
+ "HttpMethod": "*",
222
+ "LoggingLevel": "INFO",
223
+ "ResourcePath": "/*"
224
+ }
225
+ ],
226
+ "RestApiId": {
227
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
228
+ },
229
+ "StageName": "prod",
230
+ "TracingEnabled": true
231
+ },
232
+ "Metadata": {
233
+ "guard": {
234
+ "SuppressedRules": [
235
+ "API_GW_CACHE_ENABLED_AND_ENCRYPTED"
236
+ ]
237
+ }
238
+ }
239
+ },
240
+ "testapigatewaylambdaLambdaRestApiproxy2C2C544E": {
241
+ "Type": "AWS::ApiGateway::Resource",
242
+ "Properties": {
243
+ "ParentId": {
244
+ "Fn::GetAtt": [
245
+ "testapigatewaylambdaLambdaRestApiE957E944",
246
+ "RootResourceId"
247
+ ]
248
+ },
249
+ "PathPart": "{proxy+}",
250
+ "RestApiId": {
251
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
252
+ }
253
+ }
254
+ },
255
+ "testapigatewaylambdaLambdaRestApiproxyANYApiPermissionapilamnousageplantestapigatewaylambdaLambdaRestApi37AE5E45ANYproxy7C37E473": {
256
+ "Type": "AWS::Lambda::Permission",
257
+ "Properties": {
258
+ "Action": "lambda:InvokeFunction",
259
+ "FunctionName": {
260
+ "Fn::GetAtt": [
261
+ "testapigatewaylambdaLambdaFunction18FF222F",
262
+ "Arn"
263
+ ]
264
+ },
265
+ "Principal": "apigateway.amazonaws.com",
266
+ "SourceArn": {
267
+ "Fn::Join": [
268
+ "",
269
+ [
270
+ "arn:",
271
+ {
272
+ "Ref": "AWS::Partition"
273
+ },
274
+ ":execute-api:",
275
+ {
276
+ "Ref": "AWS::Region"
277
+ },
278
+ ":",
279
+ {
280
+ "Ref": "AWS::AccountId"
281
+ },
282
+ ":",
283
+ {
284
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
285
+ },
286
+ "/",
287
+ {
288
+ "Ref": "testapigatewaylambdaLambdaRestApiDeploymentStageprod4EBF7247"
289
+ },
290
+ "/*/*"
291
+ ]
292
+ ]
293
+ }
294
+ }
295
+ },
296
+ "testapigatewaylambdaLambdaRestApiproxyANYApiPermissionTestapilamnousageplantestapigatewaylambdaLambdaRestApi37AE5E45ANYproxyB8D448C2": {
297
+ "Type": "AWS::Lambda::Permission",
298
+ "Properties": {
299
+ "Action": "lambda:InvokeFunction",
300
+ "FunctionName": {
301
+ "Fn::GetAtt": [
302
+ "testapigatewaylambdaLambdaFunction18FF222F",
303
+ "Arn"
304
+ ]
305
+ },
306
+ "Principal": "apigateway.amazonaws.com",
307
+ "SourceArn": {
308
+ "Fn::Join": [
309
+ "",
310
+ [
311
+ "arn:",
312
+ {
313
+ "Ref": "AWS::Partition"
314
+ },
315
+ ":execute-api:",
316
+ {
317
+ "Ref": "AWS::Region"
318
+ },
319
+ ":",
320
+ {
321
+ "Ref": "AWS::AccountId"
322
+ },
323
+ ":",
324
+ {
325
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
326
+ },
327
+ "/test-invoke-stage/*/*"
328
+ ]
329
+ ]
330
+ }
331
+ }
332
+ },
333
+ "testapigatewaylambdaLambdaRestApiproxyANYF6150927": {
334
+ "Type": "AWS::ApiGateway::Method",
335
+ "Properties": {
336
+ "AuthorizationType": "AWS_IAM",
337
+ "HttpMethod": "ANY",
338
+ "Integration": {
339
+ "IntegrationHttpMethod": "POST",
340
+ "Type": "AWS_PROXY",
341
+ "Uri": {
342
+ "Fn::Join": [
343
+ "",
344
+ [
345
+ "arn:",
346
+ {
347
+ "Ref": "AWS::Partition"
348
+ },
349
+ ":apigateway:",
350
+ {
351
+ "Ref": "AWS::Region"
352
+ },
353
+ ":lambda:path/2015-03-31/functions/",
354
+ {
355
+ "Fn::GetAtt": [
356
+ "testapigatewaylambdaLambdaFunction18FF222F",
357
+ "Arn"
358
+ ]
359
+ },
360
+ "/invocations"
361
+ ]
362
+ ]
363
+ }
364
+ },
365
+ "ResourceId": {
366
+ "Ref": "testapigatewaylambdaLambdaRestApiproxy2C2C544E"
367
+ },
368
+ "RestApiId": {
369
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
370
+ }
371
+ }
372
+ },
373
+ "testapigatewaylambdaLambdaRestApiANYApiPermissionapilamnousageplantestapigatewaylambdaLambdaRestApi37AE5E45ANY0C9BD547": {
374
+ "Type": "AWS::Lambda::Permission",
375
+ "Properties": {
376
+ "Action": "lambda:InvokeFunction",
377
+ "FunctionName": {
378
+ "Fn::GetAtt": [
379
+ "testapigatewaylambdaLambdaFunction18FF222F",
380
+ "Arn"
381
+ ]
382
+ },
383
+ "Principal": "apigateway.amazonaws.com",
384
+ "SourceArn": {
385
+ "Fn::Join": [
386
+ "",
387
+ [
388
+ "arn:",
389
+ {
390
+ "Ref": "AWS::Partition"
391
+ },
392
+ ":execute-api:",
393
+ {
394
+ "Ref": "AWS::Region"
395
+ },
396
+ ":",
397
+ {
398
+ "Ref": "AWS::AccountId"
399
+ },
400
+ ":",
401
+ {
402
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
403
+ },
404
+ "/",
405
+ {
406
+ "Ref": "testapigatewaylambdaLambdaRestApiDeploymentStageprod4EBF7247"
407
+ },
408
+ "/*/"
409
+ ]
410
+ ]
411
+ }
412
+ }
413
+ },
414
+ "testapigatewaylambdaLambdaRestApiANYApiPermissionTestapilamnousageplantestapigatewaylambdaLambdaRestApi37AE5E45ANY7510A235": {
415
+ "Type": "AWS::Lambda::Permission",
416
+ "Properties": {
417
+ "Action": "lambda:InvokeFunction",
418
+ "FunctionName": {
419
+ "Fn::GetAtt": [
420
+ "testapigatewaylambdaLambdaFunction18FF222F",
421
+ "Arn"
422
+ ]
423
+ },
424
+ "Principal": "apigateway.amazonaws.com",
425
+ "SourceArn": {
426
+ "Fn::Join": [
427
+ "",
428
+ [
429
+ "arn:",
430
+ {
431
+ "Ref": "AWS::Partition"
432
+ },
433
+ ":execute-api:",
434
+ {
435
+ "Ref": "AWS::Region"
436
+ },
437
+ ":",
438
+ {
439
+ "Ref": "AWS::AccountId"
440
+ },
441
+ ":",
442
+ {
443
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
444
+ },
445
+ "/test-invoke-stage/*/"
446
+ ]
447
+ ]
448
+ }
449
+ }
450
+ },
451
+ "testapigatewaylambdaLambdaRestApiANY1FACA749": {
452
+ "Type": "AWS::ApiGateway::Method",
453
+ "Properties": {
454
+ "AuthorizationType": "AWS_IAM",
455
+ "HttpMethod": "ANY",
456
+ "Integration": {
457
+ "IntegrationHttpMethod": "POST",
458
+ "Type": "AWS_PROXY",
459
+ "Uri": {
460
+ "Fn::Join": [
461
+ "",
462
+ [
463
+ "arn:",
464
+ {
465
+ "Ref": "AWS::Partition"
466
+ },
467
+ ":apigateway:",
468
+ {
469
+ "Ref": "AWS::Region"
470
+ },
471
+ ":lambda:path/2015-03-31/functions/",
472
+ {
473
+ "Fn::GetAtt": [
474
+ "testapigatewaylambdaLambdaFunction18FF222F",
475
+ "Arn"
476
+ ]
477
+ },
478
+ "/invocations"
479
+ ]
480
+ ]
481
+ }
482
+ },
483
+ "ResourceId": {
484
+ "Fn::GetAtt": [
485
+ "testapigatewaylambdaLambdaRestApiE957E944",
486
+ "RootResourceId"
487
+ ]
488
+ },
489
+ "RestApiId": {
490
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
491
+ }
492
+ }
493
+ },
494
+ "testapigatewaylambdaLambdaRestApiCloudWatchRole6D45E039": {
495
+ "Type": "AWS::IAM::Role",
496
+ "Properties": {
497
+ "AssumeRolePolicyDocument": {
498
+ "Statement": [
499
+ {
500
+ "Action": "sts:AssumeRole",
501
+ "Effect": "Allow",
502
+ "Principal": {
503
+ "Service": "apigateway.amazonaws.com"
504
+ }
505
+ }
506
+ ],
507
+ "Version": "2012-10-17"
508
+ },
509
+ "Policies": [
510
+ {
511
+ "PolicyDocument": {
512
+ "Statement": [
513
+ {
514
+ "Action": [
515
+ "logs:CreateLogGroup",
516
+ "logs:CreateLogStream",
517
+ "logs:DescribeLogGroups",
518
+ "logs:DescribeLogStreams",
519
+ "logs:FilterLogEvents",
520
+ "logs:GetLogEvents",
521
+ "logs:PutLogEvents"
522
+ ],
523
+ "Effect": "Allow",
524
+ "Resource": {
525
+ "Fn::Join": [
526
+ "",
527
+ [
528
+ "arn:",
529
+ {
530
+ "Ref": "AWS::Partition"
531
+ },
532
+ ":logs:",
533
+ {
534
+ "Ref": "AWS::Region"
535
+ },
536
+ ":",
537
+ {
538
+ "Ref": "AWS::AccountId"
539
+ },
540
+ ":*"
541
+ ]
542
+ ]
543
+ }
544
+ }
545
+ ],
546
+ "Version": "2012-10-17"
547
+ },
548
+ "PolicyName": "LambdaRestApiCloudWatchRolePolicy"
549
+ }
550
+ ]
551
+ },
552
+ "Metadata": {
553
+ "guard": {
554
+ "SuppressedRules": [
555
+ "IAM_NO_INLINE_POLICY_CHECK"
556
+ ]
557
+ }
558
+ }
559
+ },
560
+ "testapigatewaylambdaLambdaRestApiAccount0D88B6B8": {
561
+ "Type": "AWS::ApiGateway::Account",
562
+ "Properties": {
563
+ "CloudWatchRoleArn": {
564
+ "Fn::GetAtt": [
565
+ "testapigatewaylambdaLambdaRestApiCloudWatchRole6D45E039",
566
+ "Arn"
567
+ ]
568
+ }
569
+ },
570
+ "DependsOn": [
571
+ "testapigatewaylambdaLambdaRestApiE957E944"
572
+ ]
573
+ }
574
+ },
575
+ "Outputs": {
576
+ "testapigatewaylambdaLambdaRestApiEndpoint2EF0B753": {
577
+ "Value": {
578
+ "Fn::Join": [
579
+ "",
580
+ [
581
+ "https://",
582
+ {
583
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
584
+ },
585
+ ".execute-api.",
586
+ {
587
+ "Ref": "AWS::Region"
588
+ },
589
+ ".",
590
+ {
591
+ "Ref": "AWS::URLSuffix"
592
+ },
593
+ "/",
594
+ {
595
+ "Ref": "testapigatewaylambdaLambdaRestApiDeploymentStageprod4EBF7247"
596
+ },
597
+ "/"
598
+ ]
599
+ ]
600
+ }
601
+ }
602
+ },
603
+ "Parameters": {
604
+ "BootstrapVersion": {
605
+ "Type": "AWS::SSM::Parameter::Value<String>",
606
+ "Default": "/cdk-bootstrap/hnb659fds/version",
607
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
608
+ }
609
+ },
610
+ "Rules": {
611
+ "CheckBootstrapVersion": {
612
+ "Assertions": [
613
+ {
614
+ "Assert": {
615
+ "Fn::Not": [
616
+ {
617
+ "Fn::Contains": [
618
+ [
619
+ "1",
620
+ "2",
621
+ "3",
622
+ "4",
623
+ "5"
624
+ ],
625
+ {
626
+ "Ref": "BootstrapVersion"
627
+ }
628
+ ]
629
+ }
630
+ ]
631
+ },
632
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
633
+ }
634
+ ]
635
+ }
636
+ }
637
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "version": "39.0.0",
3
+ "files": {
4
+ "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
+ "source": {
6
+ "path": "apilamnousageplanIntegDefaultTestDeployAssertFA088EA5.template.json",
7
+ "packaging": "file"
8
+ },
9
+ "destinations": {
10
+ "current_account-current_region": {
11
+ "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12
+ "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
13
+ "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14
+ }
15
+ }
16
+ }
17
+ },
18
+ "dockerImages": {}
19
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "Parameters": {
3
+ "BootstrapVersion": {
4
+ "Type": "AWS::SSM::Parameter::Value<String>",
5
+ "Default": "/cdk-bootstrap/hnb659fds/version",
6
+ "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
7
+ }
8
+ },
9
+ "Rules": {
10
+ "CheckBootstrapVersion": {
11
+ "Assertions": [
12
+ {
13
+ "Assert": {
14
+ "Fn::Not": [
15
+ {
16
+ "Fn::Contains": [
17
+ [
18
+ "1",
19
+ "2",
20
+ "3",
21
+ "4",
22
+ "5"
23
+ ],
24
+ {
25
+ "Ref": "BootstrapVersion"
26
+ }
27
+ ]
28
+ }
29
+ ]
30
+ },
31
+ "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
32
+ }
33
+ ]
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5
+ * with the License. A copy of the License is located at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10
+ * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11
+ * and limitations under the License.
12
+ */
13
+
14
+ exports.handler = async (event, context) => {
15
+ console.log('Received event:', JSON.stringify(event, null, 2));
16
+     return {
17
+       statusCode: 200,
18
+       headers: { 'Content-Type': 'text/plain' },
19
+       body: `Hello from Project Vesper! You've hit ${event.path}\n`
20
+     };
21
+ };