@aws-solutions-constructs/aws-iot-lambda 2.80.0 → 2.81.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.
- package/.jsii +43 -4
- package/lib/index.js +1 -1
- package/package.json +6 -6
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/asset.3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f/index.js +23 -0
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/cdk.out +1 -1
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/integ.json +1 -1
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/iotlam-iot-lambda-new-func.assets.json +6 -6
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/iotlam-iot-lambda-new-func.template.json +25 -36
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/iotlamiotlambdanewfuncIntegDefaultTestDeployAssert4A7D5BFD.assets.json +1 -1
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/manifest.json +106 -6
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/tree.json +1 -362
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/asset.3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f/index.js +23 -0
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/cdk.out +1 -1
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/integ.json +1 -1
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/iotlam-iot-lambda-use-existing-func.assets.json +6 -6
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/iotlam-iot-lambda-use-existing-func.template.json +25 -36
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/iotlamiotlambdauseexistingfuncIntegDefaultTestDeployAssert1472E245.assets.json +1 -1
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/manifest.json +106 -6
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/tree.json +1 -362
- package/test/integ.iotlam-iot-lambda-new-func.js.snapshot/asset.42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c/index.js +0 -10
- package/test/integ.iotlam-iot-lambda-use-existing-func.js.snapshot/asset.42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c/index.js +0 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "42.0.0",
|
|
3
3
|
"artifacts": {
|
|
4
4
|
"iotlamiotlambdauseexistingfuncIntegDefaultTestDeployAssert1472E245.assets": {
|
|
5
5
|
"type": "cdk:asset-manifest",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"validateOnSynth": false,
|
|
67
67
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
|
|
68
68
|
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
|
|
69
|
-
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/
|
|
69
|
+
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/dd723deb32de5c16a4dc50a7118096bc60a123d3a8bc834c4f033e315869c648.json",
|
|
70
70
|
"requiresBootstrapStackVersion": 6,
|
|
71
71
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
72
|
"additionalDependencies": [
|
|
@@ -82,16 +82,68 @@
|
|
|
82
82
|
"iotlam-iot-lambda-use-existing-func.assets"
|
|
83
83
|
],
|
|
84
84
|
"metadata": {
|
|
85
|
+
"/iotlam-iot-lambda-use-existing-func/LambdaFunctionServiceRole": [
|
|
86
|
+
{
|
|
87
|
+
"type": "aws:cdk:analytics:construct",
|
|
88
|
+
"data": {
|
|
89
|
+
"assumedBy": {
|
|
90
|
+
"principalAccount": "*",
|
|
91
|
+
"assumeRoleAction": "*"
|
|
92
|
+
},
|
|
93
|
+
"inlinePolicies": "*"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "aws:cdk:analytics:method",
|
|
98
|
+
"data": {
|
|
99
|
+
"attachInlinePolicy": [
|
|
100
|
+
"*"
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "aws:cdk:analytics:method",
|
|
106
|
+
"data": {
|
|
107
|
+
"attachInlinePolicy": [
|
|
108
|
+
"*"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"/iotlam-iot-lambda-use-existing-func/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole": [
|
|
114
|
+
{
|
|
115
|
+
"type": "aws:cdk:analytics:construct",
|
|
116
|
+
"data": "*"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
85
119
|
"/iotlam-iot-lambda-use-existing-func/LambdaFunctionServiceRole/Resource": [
|
|
86
120
|
{
|
|
87
121
|
"type": "aws:cdk:logicalId",
|
|
88
122
|
"data": "LambdaFunctionServiceRole0C4CDE0B"
|
|
89
123
|
}
|
|
90
124
|
],
|
|
91
|
-
"/iotlam-iot-lambda-use-existing-func/
|
|
125
|
+
"/iotlam-iot-lambda-use-existing-func/LambdaFunction": [
|
|
92
126
|
{
|
|
93
|
-
"type": "aws:cdk:
|
|
94
|
-
"data":
|
|
127
|
+
"type": "aws:cdk:analytics:construct",
|
|
128
|
+
"data": {
|
|
129
|
+
"role": "*",
|
|
130
|
+
"tracing": "Active",
|
|
131
|
+
"runtime": "*",
|
|
132
|
+
"handler": "*",
|
|
133
|
+
"code": "*"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "aws:cdk:analytics:method",
|
|
138
|
+
"data": {
|
|
139
|
+
"addEnvironment": [
|
|
140
|
+
"*",
|
|
141
|
+
"*",
|
|
142
|
+
{
|
|
143
|
+
"removeInEdge": true
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|
|
95
147
|
}
|
|
96
148
|
],
|
|
97
149
|
"/iotlam-iot-lambda-use-existing-func/LambdaFunction/Resource": [
|
|
@@ -100,6 +152,44 @@
|
|
|
100
152
|
"data": "LambdaFunctionBF21E41F"
|
|
101
153
|
}
|
|
102
154
|
],
|
|
155
|
+
"/iotlam-iot-lambda-use-existing-func/LambdaFunction/inlinePolicyAddedToExecutionRole-0": [
|
|
156
|
+
{
|
|
157
|
+
"type": "aws:cdk:analytics:construct",
|
|
158
|
+
"data": {
|
|
159
|
+
"statements": "*"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "aws:cdk:analytics:method",
|
|
164
|
+
"data": {
|
|
165
|
+
"addStatements": [
|
|
166
|
+
{}
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"type": "aws:cdk:analytics:method",
|
|
172
|
+
"data": {
|
|
173
|
+
"attachToRole": [
|
|
174
|
+
"*"
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"type": "aws:cdk:analytics:method",
|
|
180
|
+
"data": {
|
|
181
|
+
"attachToRole": [
|
|
182
|
+
"*"
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"/iotlam-iot-lambda-use-existing-func/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource": [
|
|
188
|
+
{
|
|
189
|
+
"type": "aws:cdk:logicalId",
|
|
190
|
+
"data": "LambdaFunctioninlinePolicyAddedToExecutionRole007875684"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
103
193
|
"/iotlam-iot-lambda-use-existing-func/LambdaFunction/AwsIotLambdaInvokePermission-1": [
|
|
104
194
|
{
|
|
105
195
|
"type": "aws:cdk:logicalId",
|
|
@@ -123,6 +213,15 @@
|
|
|
123
213
|
"type": "aws:cdk:logicalId",
|
|
124
214
|
"data": "CheckBootstrapVersion"
|
|
125
215
|
}
|
|
216
|
+
],
|
|
217
|
+
"LambdaFunctionServiceRoleDefaultPolicy126C8897": [
|
|
218
|
+
{
|
|
219
|
+
"type": "aws:cdk:logicalId",
|
|
220
|
+
"data": "LambdaFunctionServiceRoleDefaultPolicy126C8897",
|
|
221
|
+
"trace": [
|
|
222
|
+
"!!DESTRUCTIVE_CHANGES: WILL_DESTROY"
|
|
223
|
+
]
|
|
224
|
+
}
|
|
126
225
|
]
|
|
127
226
|
},
|
|
128
227
|
"displayName": "iotlam-iot-lambda-use-existing-func"
|
|
@@ -133,5 +232,6 @@
|
|
|
133
232
|
"file": "tree.json"
|
|
134
233
|
}
|
|
135
234
|
}
|
|
136
|
-
}
|
|
235
|
+
},
|
|
236
|
+
"minimumCliVersion": "2.1006.0"
|
|
137
237
|
}
|
|
@@ -1,362 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "tree-0.1",
|
|
3
|
-
"tree": {
|
|
4
|
-
"id": "App",
|
|
5
|
-
"path": "",
|
|
6
|
-
"children": {
|
|
7
|
-
"iotlam-iot-lambda-use-existing-func": {
|
|
8
|
-
"id": "iotlam-iot-lambda-use-existing-func",
|
|
9
|
-
"path": "iotlam-iot-lambda-use-existing-func",
|
|
10
|
-
"children": {
|
|
11
|
-
"LambdaFunctionServiceRole": {
|
|
12
|
-
"id": "LambdaFunctionServiceRole",
|
|
13
|
-
"path": "iotlam-iot-lambda-use-existing-func/LambdaFunctionServiceRole",
|
|
14
|
-
"children": {
|
|
15
|
-
"ImportLambdaFunctionServiceRole": {
|
|
16
|
-
"id": "ImportLambdaFunctionServiceRole",
|
|
17
|
-
"path": "iotlam-iot-lambda-use-existing-func/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
|
|
18
|
-
"constructInfo": {
|
|
19
|
-
"fqn": "aws-cdk-lib.Resource",
|
|
20
|
-
"version": "2.150.0"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"Resource": {
|
|
24
|
-
"id": "Resource",
|
|
25
|
-
"path": "iotlam-iot-lambda-use-existing-func/LambdaFunctionServiceRole/Resource",
|
|
26
|
-
"attributes": {
|
|
27
|
-
"aws:cdk:cloudformation:type": "AWS::IAM::Role",
|
|
28
|
-
"aws:cdk:cloudformation:props": {
|
|
29
|
-
"assumeRolePolicyDocument": {
|
|
30
|
-
"Statement": [
|
|
31
|
-
{
|
|
32
|
-
"Action": "sts:AssumeRole",
|
|
33
|
-
"Effect": "Allow",
|
|
34
|
-
"Principal": {
|
|
35
|
-
"Service": "lambda.amazonaws.com"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"Version": "2012-10-17"
|
|
40
|
-
},
|
|
41
|
-
"policies": [
|
|
42
|
-
{
|
|
43
|
-
"policyName": "LambdaFunctionServiceRolePolicy",
|
|
44
|
-
"policyDocument": {
|
|
45
|
-
"Statement": [
|
|
46
|
-
{
|
|
47
|
-
"Action": [
|
|
48
|
-
"logs:CreateLogGroup",
|
|
49
|
-
"logs:CreateLogStream",
|
|
50
|
-
"logs:PutLogEvents"
|
|
51
|
-
],
|
|
52
|
-
"Effect": "Allow",
|
|
53
|
-
"Resource": {
|
|
54
|
-
"Fn::Join": [
|
|
55
|
-
"",
|
|
56
|
-
[
|
|
57
|
-
"arn:",
|
|
58
|
-
{
|
|
59
|
-
"Ref": "AWS::Partition"
|
|
60
|
-
},
|
|
61
|
-
":logs:",
|
|
62
|
-
{
|
|
63
|
-
"Ref": "AWS::Region"
|
|
64
|
-
},
|
|
65
|
-
":",
|
|
66
|
-
{
|
|
67
|
-
"Ref": "AWS::AccountId"
|
|
68
|
-
},
|
|
69
|
-
":log-group:/aws/lambda/*"
|
|
70
|
-
]
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"Version": "2012-10-17"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"constructInfo": {
|
|
82
|
-
"fqn": "aws-cdk-lib.aws_iam.CfnRole",
|
|
83
|
-
"version": "2.150.0"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"DefaultPolicy": {
|
|
87
|
-
"id": "DefaultPolicy",
|
|
88
|
-
"path": "iotlam-iot-lambda-use-existing-func/LambdaFunctionServiceRole/DefaultPolicy",
|
|
89
|
-
"children": {
|
|
90
|
-
"Resource": {
|
|
91
|
-
"id": "Resource",
|
|
92
|
-
"path": "iotlam-iot-lambda-use-existing-func/LambdaFunctionServiceRole/DefaultPolicy/Resource",
|
|
93
|
-
"attributes": {
|
|
94
|
-
"aws:cdk:cloudformation:type": "AWS::IAM::Policy",
|
|
95
|
-
"aws:cdk:cloudformation:props": {
|
|
96
|
-
"policyDocument": {
|
|
97
|
-
"Statement": [
|
|
98
|
-
{
|
|
99
|
-
"Action": [
|
|
100
|
-
"xray:PutTelemetryRecords",
|
|
101
|
-
"xray:PutTraceSegments"
|
|
102
|
-
],
|
|
103
|
-
"Effect": "Allow",
|
|
104
|
-
"Resource": "*"
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"Version": "2012-10-17"
|
|
108
|
-
},
|
|
109
|
-
"policyName": "LambdaFunctionServiceRoleDefaultPolicy126C8897",
|
|
110
|
-
"roles": [
|
|
111
|
-
{
|
|
112
|
-
"Ref": "LambdaFunctionServiceRole0C4CDE0B"
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
"constructInfo": {
|
|
118
|
-
"fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
|
|
119
|
-
"version": "2.150.0"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"constructInfo": {
|
|
124
|
-
"fqn": "aws-cdk-lib.aws_iam.Policy",
|
|
125
|
-
"version": "2.150.0"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"constructInfo": {
|
|
130
|
-
"fqn": "aws-cdk-lib.aws_iam.Role",
|
|
131
|
-
"version": "2.150.0"
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
"LambdaFunction": {
|
|
135
|
-
"id": "LambdaFunction",
|
|
136
|
-
"path": "iotlam-iot-lambda-use-existing-func/LambdaFunction",
|
|
137
|
-
"children": {
|
|
138
|
-
"Code": {
|
|
139
|
-
"id": "Code",
|
|
140
|
-
"path": "iotlam-iot-lambda-use-existing-func/LambdaFunction/Code",
|
|
141
|
-
"children": {
|
|
142
|
-
"Stage": {
|
|
143
|
-
"id": "Stage",
|
|
144
|
-
"path": "iotlam-iot-lambda-use-existing-func/LambdaFunction/Code/Stage",
|
|
145
|
-
"constructInfo": {
|
|
146
|
-
"fqn": "aws-cdk-lib.AssetStaging",
|
|
147
|
-
"version": "2.150.0"
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
"AssetBucket": {
|
|
151
|
-
"id": "AssetBucket",
|
|
152
|
-
"path": "iotlam-iot-lambda-use-existing-func/LambdaFunction/Code/AssetBucket",
|
|
153
|
-
"constructInfo": {
|
|
154
|
-
"fqn": "aws-cdk-lib.aws_s3.BucketBase",
|
|
155
|
-
"version": "2.150.0"
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"constructInfo": {
|
|
160
|
-
"fqn": "aws-cdk-lib.aws_s3_assets.Asset",
|
|
161
|
-
"version": "2.150.0"
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
"Resource": {
|
|
165
|
-
"id": "Resource",
|
|
166
|
-
"path": "iotlam-iot-lambda-use-existing-func/LambdaFunction/Resource",
|
|
167
|
-
"attributes": {
|
|
168
|
-
"aws:cdk:cloudformation:type": "AWS::Lambda::Function",
|
|
169
|
-
"aws:cdk:cloudformation:props": {
|
|
170
|
-
"code": {
|
|
171
|
-
"s3Bucket": {
|
|
172
|
-
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
173
|
-
},
|
|
174
|
-
"s3Key": "42a35bbf0dec9ef0ac5b0dde87e71a1b8929e8d2d178dd09ccfb2c928ec0198c.zip"
|
|
175
|
-
},
|
|
176
|
-
"environment": {
|
|
177
|
-
"variables": {
|
|
178
|
-
"AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"handler": "index.handler",
|
|
182
|
-
"role": {
|
|
183
|
-
"Fn::GetAtt": [
|
|
184
|
-
"LambdaFunctionServiceRole0C4CDE0B",
|
|
185
|
-
"Arn"
|
|
186
|
-
]
|
|
187
|
-
},
|
|
188
|
-
"runtime": "nodejs20.x",
|
|
189
|
-
"tracingConfig": {
|
|
190
|
-
"mode": "Active"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
"constructInfo": {
|
|
195
|
-
"fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
|
|
196
|
-
"version": "2.150.0"
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
"AwsIotLambdaInvokePermission-1": {
|
|
200
|
-
"id": "AwsIotLambdaInvokePermission-1",
|
|
201
|
-
"path": "iotlam-iot-lambda-use-existing-func/LambdaFunction/AwsIotLambdaInvokePermission-1",
|
|
202
|
-
"attributes": {
|
|
203
|
-
"aws:cdk:cloudformation:type": "AWS::Lambda::Permission",
|
|
204
|
-
"aws:cdk:cloudformation:props": {
|
|
205
|
-
"action": "lambda:InvokeFunction",
|
|
206
|
-
"functionName": {
|
|
207
|
-
"Fn::GetAtt": [
|
|
208
|
-
"LambdaFunctionBF21E41F",
|
|
209
|
-
"Arn"
|
|
210
|
-
]
|
|
211
|
-
},
|
|
212
|
-
"principal": "iot.amazonaws.com",
|
|
213
|
-
"sourceArn": {
|
|
214
|
-
"Fn::GetAtt": [
|
|
215
|
-
"testiotlambdaintegrationIotTopic18B6A735",
|
|
216
|
-
"Arn"
|
|
217
|
-
]
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
"constructInfo": {
|
|
222
|
-
"fqn": "aws-cdk-lib.aws_lambda.CfnPermission",
|
|
223
|
-
"version": "2.150.0"
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
"constructInfo": {
|
|
228
|
-
"fqn": "aws-cdk-lib.aws_lambda.Function",
|
|
229
|
-
"version": "2.150.0"
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
"test-iot-lambda-integration": {
|
|
233
|
-
"id": "test-iot-lambda-integration",
|
|
234
|
-
"path": "iotlam-iot-lambda-use-existing-func/test-iot-lambda-integration",
|
|
235
|
-
"children": {
|
|
236
|
-
"IotTopic": {
|
|
237
|
-
"id": "IotTopic",
|
|
238
|
-
"path": "iotlam-iot-lambda-use-existing-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
|
-
"LambdaFunctionBF21E41F",
|
|
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-use-existing-func/Integ",
|
|
275
|
-
"children": {
|
|
276
|
-
"DefaultTest": {
|
|
277
|
-
"id": "DefaultTest",
|
|
278
|
-
"path": "iotlam-iot-lambda-use-existing-func/Integ/DefaultTest",
|
|
279
|
-
"children": {
|
|
280
|
-
"Default": {
|
|
281
|
-
"id": "Default",
|
|
282
|
-
"path": "iotlam-iot-lambda-use-existing-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-use-existing-func/Integ/DefaultTest/DeployAssert",
|
|
291
|
-
"children": {
|
|
292
|
-
"BootstrapVersion": {
|
|
293
|
-
"id": "BootstrapVersion",
|
|
294
|
-
"path": "iotlam-iot-lambda-use-existing-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-use-existing-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-use-existing-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-use-existing-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-use-existing-func":{"id":"iotlam-iot-lambda-use-existing-func","path":"iotlam-iot-lambda-use-existing-func","children":{"LambdaFunctionServiceRole":{"id":"LambdaFunctionServiceRole","path":"iotlam-iot-lambda-use-existing-func/LambdaFunctionServiceRole","children":{"ImportLambdaFunctionServiceRole":{"id":"ImportLambdaFunctionServiceRole","path":"iotlam-iot-lambda-use-existing-func/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"iotlam-iot-lambda-use-existing-func/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-use-existing-func/LambdaFunction","children":{"Code":{"id":"Code","path":"iotlam-iot-lambda-use-existing-func/LambdaFunction/Code","children":{"Stage":{"id":"Stage","path":"iotlam-iot-lambda-use-existing-func/LambdaFunction/Code/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"iotlam-iot-lambda-use-existing-func/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-use-existing-func/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":["LambdaFunctionServiceRole0C4CDE0B","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-use-existing-func/LambdaFunction/inlinePolicyAddedToExecutionRole-0","children":{"Resource":{"id":"Resource","path":"iotlam-iot-lambda-use-existing-func/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":"LambdaFunctioninlinePolicyAddedToExecutionRole007875684","roles":[{"Ref":"LambdaFunctionServiceRole0C4CDE0B"}]}},"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-use-existing-func/LambdaFunction/AwsIotLambdaInvokePermission-1","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Permission","aws:cdk:cloudformation:props":{"action":"lambda:InvokeFunction","functionName":{"Fn::GetAtt":["LambdaFunctionBF21E41F","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","runtime":"*","handler":"*","code":"*"},{"addEnvironment":["*","*",{"removeInEdge":true}]}]}},"test-iot-lambda-integration":{"id":"test-iot-lambda-integration","path":"iotlam-iot-lambda-use-existing-func/test-iot-lambda-integration","children":{"IotTopic":{"id":"IotTopic","path":"iotlam-iot-lambda-use-existing-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":["LambdaFunctionBF21E41F","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-use-existing-func/Integ","children":{"DefaultTest":{"id":"DefaultTest","path":"iotlam-iot-lambda-use-existing-func/Integ/DefaultTest","children":{"Default":{"id":"Default","path":"iotlam-iot-lambda-use-existing-func/Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"DeployAssert":{"id":"DeployAssert","path":"iotlam-iot-lambda-use-existing-func/Integ/DefaultTest/DeployAssert","children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"iotlam-iot-lambda-use-existing-func/Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"iotlam-iot-lambda-use-existing-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-use-existing-func/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"iotlam-iot-lambda-use-existing-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"}}}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
console.log('Loading function');
|
|
2
|
-
|
|
3
|
-
exports.handler = async (event, context) => {
|
|
4
|
-
console.log('Received event:', JSON.stringify(event, null, 2));
|
|
5
|
-
return {
|
|
6
|
-
statusCode: 200,
|
|
7
|
-
headers: { 'Content-Type': 'text/plain' },
|
|
8
|
-
body: `Hello from Project Vesper! You've hit ${event.path}\n`
|
|
9
|
-
};
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
console.log('Loading function');
|
|
2
|
-
|
|
3
|
-
exports.handler = async (event, context) => {
|
|
4
|
-
console.log('Received event:', JSON.stringify(event, null, 2));
|
|
5
|
-
return {
|
|
6
|
-
statusCode: 200,
|
|
7
|
-
headers: { 'Content-Type': 'text/plain' },
|
|
8
|
-
body: `Hello from Project Vesper! You've hit ${event.path}\n`
|
|
9
|
-
};
|
|
10
|
-
};
|