@aws-solutions-constructs/aws-iot-lambda 2.80.0 → 2.82.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 (21) hide show
  1. package/.jsii +43 -4
  2. package/lib/index.js +1 -1
  3. package/package.json +6 -6
  4. package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/asset.3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f/index.js +23 -0
  5. package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/cdk.out +1 -1
  6. package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/integ.json +1 -1
  7. package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/iotlam-iot-lambda-new-func.assets.json +6 -6
  8. package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/iotlam-iot-lambda-new-func.template.json +25 -36
  9. package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/iotlamiotlambdanewfuncIntegDefaultTestDeployAssert4A7D5BFD.assets.json +1 -1
  10. package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/manifest.json +106 -6
  11. package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/tree.json +1 -362
  12. package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/asset.3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f/index.js +23 -0
  13. package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/cdk.out +1 -1
  14. package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/integ.json +1 -1
  15. package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/iotlam-iot-lambda-use-existing-func.assets.json +6 -6
  16. package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/iotlam-iot-lambda-use-existing-func.template.json +25 -36
  17. package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/iotlamiotlambdauseexistingfuncIntegDefaultTestDeployAssert1472E245.assets.json +1 -1
  18. package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/manifest.json +106 -6
  19. package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/tree.json +1 -362
  20. package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/asset.42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c/index.js +0 -10
  21. package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/asset.42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c/index.js +0 -10
@@ -1,362 +1 @@
1
- {
2
- "version": "tree-0.1",
3
- "tree": {
4
- "id": "App",
5
- "path": "",
6
- "children": {
7
- "iotlam-iot-lambda-new-func": {
8
- "id": "iotlam-iot-lambda-new-func",
9
- "path": "iotlam-iot-lambda-new-func",
10
- "children": {
11
- "test-iot-lambda-integration": {
12
- "id": "test-iot-lambda-integration",
13
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration",
14
- "children": {
15
- "LambdaFunctionServiceRole": {
16
- "id": "LambdaFunctionServiceRole",
17
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunctionServiceRole",
18
- "children": {
19
- "ImportLambdaFunctionServiceRole": {
20
- "id": "ImportLambdaFunctionServiceRole",
21
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
22
- "constructInfo": {
23
- "fqn": "aws-cdk-lib.Resource",
24
- "version": "2.150.0"
25
- }
26
- },
27
- "Resource": {
28
- "id": "Resource",
29
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunctionServiceRole/Resource",
30
- "attributes": {
31
- "aws:cdk:cloudformation:type": "AWS::IAM::Role",
32
- "aws:cdk:cloudformation:props": {
33
- "assumeRolePolicyDocument": {
34
- "Statement": [
35
- {
36
- "Action": "sts:AssumeRole",
37
- "Effect": "Allow",
38
- "Principal": {
39
- "Service": "lambda.amazonaws.com"
40
- }
41
- }
42
- ],
43
- "Version": "2012-10-17"
44
- },
45
- "policies": [
46
- {
47
- "policyName": "LambdaFunctionServiceRolePolicy",
48
- "policyDocument": {
49
- "Statement": [
50
- {
51
- "Action": [
52
- "logs:CreateLogGroup",
53
- "logs:CreateLogStream",
54
- "logs:PutLogEvents"
55
- ],
56
- "Effect": "Allow",
57
- "Resource": {
58
- "Fn::Join": [
59
- "",
60
- [
61
- "arn:",
62
- {
63
- "Ref": "AWS::Partition"
64
- },
65
- ":logs:",
66
- {
67
- "Ref": "AWS::Region"
68
- },
69
- ":",
70
- {
71
- "Ref": "AWS::AccountId"
72
- },
73
- ":log-group:/aws/lambda/*"
74
- ]
75
- ]
76
- }
77
- }
78
- ],
79
- "Version": "2012-10-17"
80
- }
81
- }
82
- ]
83
- }
84
- },
85
- "constructInfo": {
86
- "fqn": "aws-cdk-lib.aws_iam.CfnRole",
87
- "version": "2.150.0"
88
- }
89
- },
90
- "DefaultPolicy": {
91
- "id": "DefaultPolicy",
92
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunctionServiceRole/DefaultPolicy",
93
- "children": {
94
- "Resource": {
95
- "id": "Resource",
96
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunctionServiceRole/DefaultPolicy/Resource",
97
- "attributes": {
98
- "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
99
- "aws:cdk:cloudformation:props": {
100
- "policyDocument": {
101
- "Statement": [
102
- {
103
- "Action": [
104
- "xray:PutTelemetryRecords",
105
- "xray:PutTraceSegments"
106
- ],
107
- "Effect": "Allow",
108
- "Resource": "*"
109
- }
110
- ],
111
- "Version": "2012-10-17"
112
- },
113
- "policyName": "testiotlambdaintegrationLambdaFunctionServiceRoleDefaultPolicy0FB2AE4D",
114
- "roles": [
115
- {
116
- "Ref": "testiotlambdaintegrationLambdaFunctionServiceRole27C3EE41"
117
- }
118
- ]
119
- }
120
- },
121
- "constructInfo": {
122
- "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
123
- "version": "2.150.0"
124
- }
125
- }
126
- },
127
- "constructInfo": {
128
- "fqn": "aws-cdk-lib.aws_iam.Policy",
129
- "version": "2.150.0"
130
- }
131
- }
132
- },
133
- "constructInfo": {
134
- "fqn": "aws-cdk-lib.aws_iam.Role",
135
- "version": "2.150.0"
136
- }
137
- },
138
- "LambdaFunction": {
139
- "id": "LambdaFunction",
140
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction",
141
- "children": {
142
- "Code": {
143
- "id": "Code",
144
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/Code",
145
- "children": {
146
- "Stage": {
147
- "id": "Stage",
148
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/Code/Stage",
149
- "constructInfo": {
150
- "fqn": "aws-cdk-lib.AssetStaging",
151
- "version": "2.150.0"
152
- }
153
- },
154
- "AssetBucket": {
155
- "id": "AssetBucket",
156
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/Code/AssetBucket",
157
- "constructInfo": {
158
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
159
- "version": "2.150.0"
160
- }
161
- }
162
- },
163
- "constructInfo": {
164
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
165
- "version": "2.150.0"
166
- }
167
- },
168
- "Resource": {
169
- "id": "Resource",
170
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/Resource",
171
- "attributes": {
172
- "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
173
- "aws:cdk:cloudformation:props": {
174
- "code": {
175
- "s3Bucket": {
176
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
177
- },
178
- "s3Key": "42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c.zip"
179
- },
180
- "environment": {
181
- "variables": {
182
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
183
- }
184
- },
185
- "handler": "index.handler",
186
- "role": {
187
- "Fn::GetAtt": [
188
- "testiotlambdaintegrationLambdaFunctionServiceRole27C3EE41",
189
- "Arn"
190
- ]
191
- },
192
- "runtime": "nodejs20.x",
193
- "tracingConfig": {
194
- "mode": "Active"
195
- }
196
- }
197
- },
198
- "constructInfo": {
199
- "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
200
- "version": "2.150.0"
201
- }
202
- },
203
- "AwsIotLambdaInvokePermission-1": {
204
- "id": "AwsIotLambdaInvokePermission-1",
205
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/AwsIotLambdaInvokePermission-1",
206
- "attributes": {
207
- "aws:cdk:cloudformation:type": "AWS::Lambda::Permission",
208
- "aws:cdk:cloudformation:props": {
209
- "action": "lambda:InvokeFunction",
210
- "functionName": {
211
- "Fn::GetAtt": [
212
- "testiotlambdaintegrationLambdaFunctionC5329DBA",
213
- "Arn"
214
- ]
215
- },
216
- "principal": "iot.amazonaws.com",
217
- "sourceArn": {
218
- "Fn::GetAtt": [
219
- "testiotlambdaintegrationIotTopic18B6A735",
220
- "Arn"
221
- ]
222
- }
223
- }
224
- },
225
- "constructInfo": {
226
- "fqn": "aws-cdk-lib.aws_lambda.CfnPermission",
227
- "version": "2.150.0"
228
- }
229
- }
230
- },
231
- "constructInfo": {
232
- "fqn": "aws-cdk-lib.aws_lambda.Function",
233
- "version": "2.150.0"
234
- }
235
- },
236
- "IotTopic": {
237
- "id": "IotTopic",
238
- "path": "iotlam-iot-lambda-new-func/test-iot-lambda-integration/IotTopic",
239
- "attributes": {
240
- "aws:cdk:cloudformation:type": "AWS::IoT::TopicRule",
241
- "aws:cdk:cloudformation:props": {
242
- "topicRulePayload": {
243
- "ruleDisabled": false,
244
- "actions": [
245
- {
246
- "lambda": {
247
- "functionArn": {
248
- "Fn::GetAtt": [
249
- "testiotlambdaintegrationLambdaFunctionC5329DBA",
250
- "Arn"
251
- ]
252
- }
253
- }
254
- }
255
- ],
256
- "sql": "SELECT * FROM 'connectedcar/dtc/#'",
257
- "description": "Processing of DTC messages from the AWS Connected Vehicle Solution."
258
- }
259
- }
260
- },
261
- "constructInfo": {
262
- "fqn": "aws-cdk-lib.aws_iot.CfnTopicRule",
263
- "version": "2.150.0"
264
- }
265
- }
266
- },
267
- "constructInfo": {
268
- "fqn": "@aws-solutions-constructs/aws-iot-lambda.IotToLambda",
269
- "version": "2.63.0"
270
- }
271
- },
272
- "Integ": {
273
- "id": "Integ",
274
- "path": "iotlam-iot-lambda-new-func/Integ",
275
- "children": {
276
- "DefaultTest": {
277
- "id": "DefaultTest",
278
- "path": "iotlam-iot-lambda-new-func/Integ/DefaultTest",
279
- "children": {
280
- "Default": {
281
- "id": "Default",
282
- "path": "iotlam-iot-lambda-new-func/Integ/DefaultTest/Default",
283
- "constructInfo": {
284
- "fqn": "constructs.Construct",
285
- "version": "10.3.0"
286
- }
287
- },
288
- "DeployAssert": {
289
- "id": "DeployAssert",
290
- "path": "iotlam-iot-lambda-new-func/Integ/DefaultTest/DeployAssert",
291
- "children": {
292
- "BootstrapVersion": {
293
- "id": "BootstrapVersion",
294
- "path": "iotlam-iot-lambda-new-func/Integ/DefaultTest/DeployAssert/BootstrapVersion",
295
- "constructInfo": {
296
- "fqn": "aws-cdk-lib.CfnParameter",
297
- "version": "2.150.0"
298
- }
299
- },
300
- "CheckBootstrapVersion": {
301
- "id": "CheckBootstrapVersion",
302
- "path": "iotlam-iot-lambda-new-func/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
303
- "constructInfo": {
304
- "fqn": "aws-cdk-lib.CfnRule",
305
- "version": "2.150.0"
306
- }
307
- }
308
- },
309
- "constructInfo": {
310
- "fqn": "aws-cdk-lib.Stack",
311
- "version": "2.150.0"
312
- }
313
- }
314
- },
315
- "constructInfo": {
316
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
317
- "version": "2.150.0-alpha.0"
318
- }
319
- }
320
- },
321
- "constructInfo": {
322
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
323
- "version": "2.150.0-alpha.0"
324
- }
325
- },
326
- "BootstrapVersion": {
327
- "id": "BootstrapVersion",
328
- "path": "iotlam-iot-lambda-new-func/BootstrapVersion",
329
- "constructInfo": {
330
- "fqn": "aws-cdk-lib.CfnParameter",
331
- "version": "2.150.0"
332
- }
333
- },
334
- "CheckBootstrapVersion": {
335
- "id": "CheckBootstrapVersion",
336
- "path": "iotlam-iot-lambda-new-func/CheckBootstrapVersion",
337
- "constructInfo": {
338
- "fqn": "aws-cdk-lib.CfnRule",
339
- "version": "2.150.0"
340
- }
341
- }
342
- },
343
- "constructInfo": {
344
- "fqn": "aws-cdk-lib.Stack",
345
- "version": "2.150.0"
346
- }
347
- },
348
- "Tree": {
349
- "id": "Tree",
350
- "path": "Tree",
351
- "constructInfo": {
352
- "fqn": "constructs.Construct",
353
- "version": "10.3.0"
354
- }
355
- }
356
- },
357
- "constructInfo": {
358
- "fqn": "aws-cdk-lib.App",
359
- "version": "2.150.0"
360
- }
361
- }
362
- }
1
+ {"version":"tree-0.1","tree":{"id":"App","path":"","children":{"iotlam-iot-lambda-new-func":{"id":"iotlam-iot-lambda-new-func","path":"iotlam-iot-lambda-new-func","children":{"test-iot-lambda-integration":{"id":"test-iot-lambda-integration","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration","children":{"LambdaFunctionServiceRole":{"id":"LambdaFunctionServiceRole","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunctionServiceRole","children":{"ImportLambdaFunctionServiceRole":{"id":"ImportLambdaFunctionServiceRole","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunctionServiceRole/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Role","aws:cdk:cloudformation:props":{"assumeRolePolicyDocument":{"Statement":[{"Action":"sts:AssumeRole","Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"}}],"Version":"2012-10-17"},"policies":[{"policyName":"LambdaFunctionServiceRolePolicy","policyDocument":{"Statement":[{"Action":["logs:CreateLogGroup","logs:CreateLogStream","logs:PutLogEvents"],"Effect":"Allow","Resource":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":logs:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":log-group:/aws/lambda/*"]]}}],"Version":"2012-10-17"}}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnRole","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.186.0","metadata":[{"assumedBy":{"principalAccount":"*","assumeRoleAction":"*"},"inlinePolicies":"*"},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]}]}},"LambdaFunction":{"id":"LambdaFunction","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction","children":{"Code":{"id":"Code","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/Code","children":{"Stage":{"id":"Stage","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/Code/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/Code/AssetBucket","constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketBase","version":"2.186.0","metadata":[]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3_assets.Asset","version":"2.186.0"}},"Resource":{"id":"Resource","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Function","aws:cdk:cloudformation:props":{"code":{"s3Bucket":{"Fn::Sub":"cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"},"s3Key":"3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f.zip"},"environment":{"variables":{"AWS_NODEJS_CONNECTION_REUSE_ENABLED":"1"}},"handler":"index.handler","role":{"Fn::GetAtt":["testiotlambdaintegrationLambdaFunctionServiceRole27C3EE41","Arn"]},"runtime":"nodejs20.x","tracingConfig":{"mode":"Active"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnFunction","version":"2.186.0"}},"inlinePolicyAddedToExecutionRole-0":{"id":"inlinePolicyAddedToExecutionRole-0","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/inlinePolicyAddedToExecutionRole-0","children":{"Resource":{"id":"Resource","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":["xray:PutTelemetryRecords","xray:PutTraceSegments"],"Effect":"Allow","Resource":"*"}],"Version":"2012-10-17"},"policyName":"testiotlambdaintegrationLambdaFunctioninlinePolicyAddedToExecutionRole078F7FCF5","roles":[{"Ref":"testiotlambdaintegrationLambdaFunctionServiceRole27C3EE41"}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnPolicy","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Policy","version":"2.186.0","metadata":[{"statements":"*"},{"addStatements":[{}]},{"attachToRole":["*"]},{"attachToRole":["*"]}]}},"AwsIotLambdaInvokePermission-1":{"id":"AwsIotLambdaInvokePermission-1","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/LambdaFunction/AwsIotLambdaInvokePermission-1","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Permission","aws:cdk:cloudformation:props":{"action":"lambda:InvokeFunction","functionName":{"Fn::GetAtt":["testiotlambdaintegrationLambdaFunctionC5329DBA","Arn"]},"principal":"iot.amazonaws.com","sourceArn":{"Fn::GetAtt":["testiotlambdaintegrationIotTopic18B6A735","Arn"]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnPermission","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.Function","version":"2.186.0","metadata":[{"role":"*","tracing":"Active","code":"*","runtime":"*","handler":"*"},{"addEnvironment":["*","*",{"removeInEdge":true}]}]}},"IotTopic":{"id":"IotTopic","path":"iotlam-iot-lambda-new-func/test-iot-lambda-integration/IotTopic","attributes":{"aws:cdk:cloudformation:type":"AWS::IoT::TopicRule","aws:cdk:cloudformation:props":{"topicRulePayload":{"ruleDisabled":false,"actions":[{"lambda":{"functionArn":{"Fn::GetAtt":["testiotlambdaintegrationLambdaFunctionC5329DBA","Arn"]}}}],"sql":"SELECT * FROM 'connectedcar/dtc/#'","description":"Processing of DTC messages from the AWS Connected Vehicle Solution."}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iot.CfnTopicRule","version":"2.186.0"}}},"constructInfo":{"fqn":"@aws-solutions-constructs/aws-iot-lambda.IotToLambda","version":"2.80.0"}},"Integ":{"id":"Integ","path":"iotlam-iot-lambda-new-func/Integ","children":{"DefaultTest":{"id":"DefaultTest","path":"iotlam-iot-lambda-new-func/Integ/DefaultTest","children":{"Default":{"id":"Default","path":"iotlam-iot-lambda-new-func/Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"DeployAssert":{"id":"DeployAssert","path":"iotlam-iot-lambda-new-func/Integ/DefaultTest/DeployAssert","children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"iotlam-iot-lambda-new-func/Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"iotlam-iot-lambda-new-func/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.186.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTestCase","version":"2.186.0-alpha.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTest","version":"2.186.0-alpha.0"}},"BootstrapVersion":{"id":"BootstrapVersion","path":"iotlam-iot-lambda-new-func/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"iotlam-iot-lambda-new-func/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.186.0"}},"Tree":{"id":"Tree","path":"Tree","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}}},"constructInfo":{"fqn":"aws-cdk-lib.App","version":"2.186.0"}}}
@@ -0,0 +1,23 @@
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
+ console.log('Loading function');
15
+
16
+ exports.handler = async (event, context) => {
17
+ console.log('Received event:', JSON.stringify(event, null, 2));
18
+     return {
19
+       statusCode: 200,
20
+       headers: { 'Content-Type': 'text/plain' },
21
+       body: `Hello from Project Vesper! You've hit ${event.path}\n`
22
+     };
23
+ };
@@ -1 +1 @@
1
- {"version":"36.0.0"}
1
+ {"version":"40.0.0"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "40.0.0",
3
3
  "testCases": {
4
4
  "iotlam-iot-lambda-use-existing-func/Integ/DefaultTest": {
5
5
  "stacks": [
@@ -1,20 +1,20 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "40.0.0",
3
3
  "files": {
4
- "42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c": {
4
+ "3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f": {
5
5
  "source": {
6
- "path": "asset.42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c",
6
+ "path": "asset.3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f",
7
7
  "packaging": "zip"
8
8
  },
9
9
  "destinations": {
10
10
  "current_account-current_region": {
11
11
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12
- "objectKey": "42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c.zip",
12
+ "objectKey": "3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f.zip",
13
13
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14
14
  }
15
15
  }
16
16
  },
17
- "0e094fd3ba4d3bdc1c04ccc30ae0c6c502ca705071e681216c4859fbc7062d5f": {
17
+ "dd723deb32de5c16a4dc50a7118096bc60a123d3a8bc834c4f033e315869c648": {
18
18
  "source": {
19
19
  "path": "iotlam-iot-lambda-use-existing-func.template.json",
20
20
  "packaging": "file"
@@ -22,7 +22,7 @@
22
22
  "destinations": {
23
23
  "current_account-current_region": {
24
24
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
25
- "objectKey": "0e094fd3ba4d3bdc1c04ccc30ae0c6c502ca705071e681216c4859fbc7062d5f.json",
25
+ "objectKey": "dd723deb32de5c16a4dc50a7118096bc60a123d3a8bc834c4f033e315869c648.json",
26
26
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27
27
  }
28
28
  }
@@ -62,40 +62,6 @@
62
62
  }
63
63
  }
64
64
  },
65
- "LambdaFunctionServiceRoleDefaultPolicy126C8897": {
66
- "Type": "AWS::IAM::Policy",
67
- "Properties": {
68
- "PolicyDocument": {
69
- "Statement": [
70
- {
71
- "Action": [
72
- "xray:PutTelemetryRecords",
73
- "xray:PutTraceSegments"
74
- ],
75
- "Effect": "Allow",
76
- "Resource": "*"
77
- }
78
- ],
79
- "Version": "2012-10-17"
80
- },
81
- "PolicyName": "LambdaFunctionServiceRoleDefaultPolicy126C8897",
82
- "Roles": [
83
- {
84
- "Ref": "LambdaFunctionServiceRole0C4CDE0B"
85
- }
86
- ]
87
- },
88
- "Metadata": {
89
- "cfn_nag": {
90
- "rules_to_suppress": [
91
- {
92
- "id": "W12",
93
- "reason": "Lambda needs the following minimum required permissions to send trace data to X-Ray and access ENIs in a VPC."
94
- }
95
- ]
96
- }
97
- }
98
- },
99
65
  "LambdaFunctionBF21E41F": {
100
66
  "Type": "AWS::Lambda::Function",
101
67
  "Properties": {
@@ -103,7 +69,7 @@
103
69
  "S3Bucket": {
104
70
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
105
71
  },
106
- "S3Key": "42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c.zip"
72
+ "S3Key": "3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f.zip"
107
73
  },
108
74
  "Environment": {
109
75
  "Variables": {
@@ -123,7 +89,6 @@
123
89
  }
124
90
  },
125
91
  "DependsOn": [
126
- "LambdaFunctionServiceRoleDefaultPolicy126C8897",
127
92
  "LambdaFunctionServiceRole0C4CDE0B"
128
93
  ],
129
94
  "Metadata": {
@@ -145,6 +110,30 @@
145
110
  }
146
111
  }
147
112
  },
113
+ "LambdaFunctioninlinePolicyAddedToExecutionRole007875684": {
114
+ "Type": "AWS::IAM::Policy",
115
+ "Properties": {
116
+ "PolicyDocument": {
117
+ "Statement": [
118
+ {
119
+ "Action": [
120
+ "xray:PutTelemetryRecords",
121
+ "xray:PutTraceSegments"
122
+ ],
123
+ "Effect": "Allow",
124
+ "Resource": "*"
125
+ }
126
+ ],
127
+ "Version": "2012-10-17"
128
+ },
129
+ "PolicyName": "LambdaFunctioninlinePolicyAddedToExecutionRole007875684",
130
+ "Roles": [
131
+ {
132
+ "Ref": "LambdaFunctionServiceRole0C4CDE0B"
133
+ }
134
+ ]
135
+ }
136
+ },
148
137
  "LambdaFunctionAwsIotLambdaInvokePermission13FA2DACB": {
149
138
  "Type": "AWS::Lambda::Permission",
150
139
  "Properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "36.0.0",
2
+ "version": "40.0.0",
3
3
  "files": {
4
4
  "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
5
  "source": {