@aws-solutions-constructs/aws-lambda-kinesisstreams 2.50.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.
- package/.eslintignore +2 -0
- package/.jsii +50 -5
- package/integ.config.json +7 -0
- package/lib/index.js +1 -1
- package/package.json +12 -11
- package/test/integ.lamkin-existingLambda.js +5 -2
- package/test/integ.lamkin-existingLambda.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
- package/test/integ.lamkin-existingLambda.js.snapshot/cdk.out +1 -0
- package/test/integ.lamkin-existingLambda.js.snapshot/integ.json +12 -0
- package/test/integ.lamkin-existingLambda.js.snapshot/lamkin-existingLambda.assets.json +32 -0
- package/test/integ.lamkin-existingLambda.js.snapshot/lamkin-existingLambda.template.json +229 -0
- package/test/integ.lamkin-existingLambda.js.snapshot/lamkinexistingLambdaIntegDefaultTestDeployAssertD62E9419.assets.json +19 -0
- package/test/integ.lamkin-existingLambda.js.snapshot/lamkinexistingLambdaIntegDefaultTestDeployAssertD62E9419.template.json +36 -0
- package/test/integ.lamkin-existingLambda.js.snapshot/manifest.json +143 -0
- package/test/integ.lamkin-existingLambda.js.snapshot/tree.json +412 -0
- package/test/integ.lamkin-existingStream.js +5 -2
- package/test/integ.lamkin-existingStream.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
- package/test/integ.lamkin-existingStream.js.snapshot/cdk.out +1 -0
- package/test/integ.lamkin-existingStream.js.snapshot/integ.json +12 -0
- package/test/integ.lamkin-existingStream.js.snapshot/lamkin-existingStream.assets.json +32 -0
- package/test/integ.lamkin-existingStream.js.snapshot/lamkin-existingStream.template.json +231 -0
- package/test/integ.lamkin-existingStream.js.snapshot/lamkinexistingStreamIntegDefaultTestDeployAssert2681B9A2.assets.json +19 -0
- package/test/integ.lamkin-existingStream.js.snapshot/lamkinexistingStreamIntegDefaultTestDeployAssert2681B9A2.template.json +36 -0
- package/test/integ.lamkin-existingStream.js.snapshot/manifest.json +143 -0
- package/test/integ.lamkin-existingStream.js.snapshot/tree.json +414 -0
- package/test/integ.lamkin-existingStreamWithCmk.js +5 -2
- package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
- package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/cdk.out +1 -0
- package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/integ.json +12 -0
- package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/lamkin-existingStreamWithCmk.assets.json +32 -0
- package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/lamkin-existingStreamWithCmk.template.json +285 -0
- package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/lamkinexistingStreamWithCmkIntegDefaultTestDeployAssert6EDF4045.assets.json +19 -0
- package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/lamkinexistingStreamWithCmkIntegDefaultTestDeployAssert6EDF4045.template.json +36 -0
- package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/manifest.json +149 -0
- package/test/integ.lamkin-existingStreamWithCmk.js.snapshot/tree.json +484 -0
- package/test/integ.lamkin-existingVpc.js +6 -2
- package/test/integ.lamkin-existingVpc.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
- package/test/integ.lamkin-existingVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
- package/test/integ.lamkin-existingVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
- package/test/integ.lamkin-existingVpc.js.snapshot/cdk.out +1 -0
- package/test/integ.lamkin-existingVpc.js.snapshot/integ.json +12 -0
- package/test/integ.lamkin-existingVpc.js.snapshot/lamkin-existingVpc.assets.json +45 -0
- package/test/integ.lamkin-existingVpc.js.snapshot/lamkin-existingVpc.template.json +1040 -0
- package/test/integ.lamkin-existingVpc.js.snapshot/lamkinexistingVpcIntegDefaultTestDeployAssertB97E47BA.assets.json +19 -0
- package/test/integ.lamkin-existingVpc.js.snapshot/lamkinexistingVpcIntegDefaultTestDeployAssertB97E47BA.template.json +36 -0
- package/test/integ.lamkin-existingVpc.js.snapshot/manifest.json +341 -0
- package/test/integ.lamkin-existingVpc.js.snapshot/tree.json +1463 -0
- package/test/integ.lamkin-newStreamFromProps.js +5 -2
- package/test/integ.lamkin-newStreamFromProps.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
- package/test/integ.lamkin-newStreamFromProps.js.snapshot/cdk.out +1 -0
- package/test/integ.lamkin-newStreamFromProps.js.snapshot/integ.json +12 -0
- package/test/integ.lamkin-newStreamFromProps.js.snapshot/lamkin-newStreamFromProps.assets.json +32 -0
- package/test/integ.lamkin-newStreamFromProps.js.snapshot/lamkin-newStreamFromProps.template.json +231 -0
- package/test/integ.lamkin-newStreamFromProps.js.snapshot/lamkinnewStreamFromPropsIntegDefaultTestDeployAssertC2946F34.assets.json +19 -0
- package/test/integ.lamkin-newStreamFromProps.js.snapshot/lamkinnewStreamFromPropsIntegDefaultTestDeployAssertC2946F34.template.json +36 -0
- package/test/integ.lamkin-newStreamFromProps.js.snapshot/manifest.json +143 -0
- package/test/integ.lamkin-newStreamFromProps.js.snapshot/tree.json +414 -0
- package/test/integ.lamkin-newVpc.js +6 -2
- package/test/integ.lamkin-newVpc.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
- package/test/integ.lamkin-newVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
- package/test/integ.lamkin-newVpc.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
- package/test/integ.lamkin-newVpc.js.snapshot/cdk.out +1 -0
- package/test/integ.lamkin-newVpc.js.snapshot/integ.json +12 -0
- package/test/integ.lamkin-newVpc.js.snapshot/lamkin-newVpc.assets.json +45 -0
- package/test/integ.lamkin-newVpc.js.snapshot/lamkin-newVpc.template.json +756 -0
- package/test/integ.lamkin-newVpc.js.snapshot/lamkinnewVpcIntegDefaultTestDeployAssert16AC3D59.assets.json +19 -0
- package/test/integ.lamkin-newVpc.js.snapshot/lamkinnewVpcIntegDefaultTestDeployAssert16AC3D59.template.json +36 -0
- package/test/integ.lamkin-newVpc.js.snapshot/manifest.json +245 -0
- package/test/integ.lamkin-newVpc.js.snapshot/tree.json +1051 -0
- package/test/integ.lamkin-newVpcFromProps.js +6 -2
- package/test/integ.lamkin-newVpcFromProps.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
- package/test/integ.lamkin-newVpcFromProps.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/__entrypoint__.js +1 -0
- package/test/integ.lamkin-newVpcFromProps.js.snapshot/asset.dd5711540f04e06aa955d7f4862fc04e8cdea464cb590dae91ed2976bb78098e/index.js +1 -0
- package/test/integ.lamkin-newVpcFromProps.js.snapshot/cdk.out +1 -0
- package/test/integ.lamkin-newVpcFromProps.js.snapshot/integ.json +12 -0
- package/test/integ.lamkin-newVpcFromProps.js.snapshot/lamkin-newVpcFromProps.assets.json +45 -0
- package/test/integ.lamkin-newVpcFromProps.js.snapshot/lamkin-newVpcFromProps.template.json +692 -0
- package/test/integ.lamkin-newVpcFromProps.js.snapshot/lamkinnewVpcFromPropsIntegDefaultTestDeployAssert95FE0487.assets.json +19 -0
- package/test/integ.lamkin-newVpcFromProps.js.snapshot/lamkinnewVpcFromPropsIntegDefaultTestDeployAssert95FE0487.template.json +36 -0
- package/test/integ.lamkin-newVpcFromProps.js.snapshot/manifest.json +227 -0
- package/test/integ.lamkin-newVpcFromProps.js.snapshot/tree.json +946 -0
- package/test/integ.lamkin-noArguments.js +5 -2
- package/test/integ.lamkin-noArguments.js.snapshot/asset.c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf/index.mjs +15 -0
- package/test/integ.lamkin-noArguments.js.snapshot/cdk.out +1 -0
- package/test/integ.lamkin-noArguments.js.snapshot/integ.json +12 -0
- package/test/integ.lamkin-noArguments.js.snapshot/lamkin-noArguments.assets.json +32 -0
- package/test/integ.lamkin-noArguments.js.snapshot/lamkin-noArguments.template.json +229 -0
- package/test/integ.lamkin-noArguments.js.snapshot/lamkinnoArgumentsIntegDefaultTestDeployAssertC0CED4B2.assets.json +19 -0
- package/test/integ.lamkin-noArguments.js.snapshot/lamkinnoArgumentsIntegDefaultTestDeployAssertC0CED4B2.template.json +36 -0
- package/test/integ.lamkin-noArguments.js.snapshot/manifest.json +143 -0
- package/test/integ.lamkin-noArguments.js.snapshot/tree.json +412 -0
- package/test/integ.lamkin-existingLambda.expected.json +0 -229
- package/test/integ.lamkin-existingStream.expected.json +0 -231
- package/test/integ.lamkin-existingStreamWithCmk.expected.json +0 -297
- package/test/integ.lamkin-existingVpc.expected.json +0 -1065
- package/test/integ.lamkin-newStreamFromProps.expected.json +0 -231
- package/test/integ.lamkin-newVpc.expected.json +0 -671
- package/test/integ.lamkin-newVpcFromProps.expected.json +0 -557
- package/test/integ.lamkin-noArguments.expected.json +0 -229
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "tree-0.1",
|
|
3
|
+
"tree": {
|
|
4
|
+
"id": "App",
|
|
5
|
+
"path": "",
|
|
6
|
+
"children": {
|
|
7
|
+
"lamkin-noArguments": {
|
|
8
|
+
"id": "lamkin-noArguments",
|
|
9
|
+
"path": "lamkin-noArguments",
|
|
10
|
+
"children": {
|
|
11
|
+
"test-lambda-kinesisstreams": {
|
|
12
|
+
"id": "test-lambda-kinesisstreams",
|
|
13
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams",
|
|
14
|
+
"children": {
|
|
15
|
+
"LambdaFunctionServiceRole": {
|
|
16
|
+
"id": "LambdaFunctionServiceRole",
|
|
17
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/LambdaFunctionServiceRole",
|
|
18
|
+
"children": {
|
|
19
|
+
"ImportLambdaFunctionServiceRole": {
|
|
20
|
+
"id": "ImportLambdaFunctionServiceRole",
|
|
21
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
|
|
22
|
+
"constructInfo": {
|
|
23
|
+
"fqn": "aws-cdk-lib.Resource",
|
|
24
|
+
"version": "2.118.0"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"Resource": {
|
|
28
|
+
"id": "Resource",
|
|
29
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/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.118.0"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"DefaultPolicy": {
|
|
91
|
+
"id": "DefaultPolicy",
|
|
92
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/LambdaFunctionServiceRole/DefaultPolicy",
|
|
93
|
+
"children": {
|
|
94
|
+
"Resource": {
|
|
95
|
+
"id": "Resource",
|
|
96
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/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
|
+
"Action": [
|
|
112
|
+
"kinesis:ListShards",
|
|
113
|
+
"kinesis:PutRecord",
|
|
114
|
+
"kinesis:PutRecords"
|
|
115
|
+
],
|
|
116
|
+
"Effect": "Allow",
|
|
117
|
+
"Resource": {
|
|
118
|
+
"Fn::GetAtt": [
|
|
119
|
+
"testlambdakinesisstreamsKinesisStream11A82116",
|
|
120
|
+
"Arn"
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"Version": "2012-10-17"
|
|
126
|
+
},
|
|
127
|
+
"policyName": "testlambdakinesisstreamsLambdaFunctionServiceRoleDefaultPolicyED972043",
|
|
128
|
+
"roles": [
|
|
129
|
+
{
|
|
130
|
+
"Ref": "testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"constructInfo": {
|
|
136
|
+
"fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
|
|
137
|
+
"version": "2.118.0"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"constructInfo": {
|
|
142
|
+
"fqn": "aws-cdk-lib.aws_iam.Policy",
|
|
143
|
+
"version": "2.118.0"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"constructInfo": {
|
|
148
|
+
"fqn": "aws-cdk-lib.aws_iam.Role",
|
|
149
|
+
"version": "2.118.0"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"LambdaFunction": {
|
|
153
|
+
"id": "LambdaFunction",
|
|
154
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/LambdaFunction",
|
|
155
|
+
"children": {
|
|
156
|
+
"Code": {
|
|
157
|
+
"id": "Code",
|
|
158
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/LambdaFunction/Code",
|
|
159
|
+
"children": {
|
|
160
|
+
"Stage": {
|
|
161
|
+
"id": "Stage",
|
|
162
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/LambdaFunction/Code/Stage",
|
|
163
|
+
"constructInfo": {
|
|
164
|
+
"fqn": "aws-cdk-lib.AssetStaging",
|
|
165
|
+
"version": "2.118.0"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"AssetBucket": {
|
|
169
|
+
"id": "AssetBucket",
|
|
170
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/LambdaFunction/Code/AssetBucket",
|
|
171
|
+
"constructInfo": {
|
|
172
|
+
"fqn": "aws-cdk-lib.aws_s3.BucketBase",
|
|
173
|
+
"version": "2.118.0"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"constructInfo": {
|
|
178
|
+
"fqn": "aws-cdk-lib.aws_s3_assets.Asset",
|
|
179
|
+
"version": "2.118.0"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"Resource": {
|
|
183
|
+
"id": "Resource",
|
|
184
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/LambdaFunction/Resource",
|
|
185
|
+
"attributes": {
|
|
186
|
+
"aws:cdk:cloudformation:type": "AWS::Lambda::Function",
|
|
187
|
+
"aws:cdk:cloudformation:props": {
|
|
188
|
+
"code": {
|
|
189
|
+
"s3Bucket": {
|
|
190
|
+
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
191
|
+
},
|
|
192
|
+
"s3Key": "c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf.zip"
|
|
193
|
+
},
|
|
194
|
+
"environment": {
|
|
195
|
+
"variables": {
|
|
196
|
+
"KINESIS_DATASTREAM_NAME": {
|
|
197
|
+
"Ref": "testlambdakinesisstreamsKinesisStream11A82116"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"handler": "index.handler",
|
|
202
|
+
"role": {
|
|
203
|
+
"Fn::GetAtt": [
|
|
204
|
+
"testlambdakinesisstreamsLambdaFunctionServiceRole95206CF3",
|
|
205
|
+
"Arn"
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
"runtime": "nodejs18.x",
|
|
209
|
+
"tracingConfig": {
|
|
210
|
+
"mode": "Active"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"constructInfo": {
|
|
215
|
+
"fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
|
|
216
|
+
"version": "2.118.0"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"constructInfo": {
|
|
221
|
+
"fqn": "aws-cdk-lib.aws_lambda.Function",
|
|
222
|
+
"version": "2.118.0"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"KinesisStream": {
|
|
226
|
+
"id": "KinesisStream",
|
|
227
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/KinesisStream",
|
|
228
|
+
"children": {
|
|
229
|
+
"Resource": {
|
|
230
|
+
"id": "Resource",
|
|
231
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/KinesisStream/Resource",
|
|
232
|
+
"attributes": {
|
|
233
|
+
"aws:cdk:cloudformation:type": "AWS::Kinesis::Stream",
|
|
234
|
+
"aws:cdk:cloudformation:props": {
|
|
235
|
+
"retentionPeriodHours": 24,
|
|
236
|
+
"shardCount": 1,
|
|
237
|
+
"streamEncryption": {
|
|
238
|
+
"encryptionType": "KMS",
|
|
239
|
+
"keyId": "alias/aws/kinesis"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"constructInfo": {
|
|
244
|
+
"fqn": "aws-cdk-lib.aws_kinesis.CfnStream",
|
|
245
|
+
"version": "2.118.0"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"constructInfo": {
|
|
250
|
+
"fqn": "aws-cdk-lib.aws_kinesis.Stream",
|
|
251
|
+
"version": "2.118.0"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"KinesisStreamGetRecordsIteratorAgeAlarm": {
|
|
255
|
+
"id": "KinesisStreamGetRecordsIteratorAgeAlarm",
|
|
256
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/KinesisStreamGetRecordsIteratorAgeAlarm",
|
|
257
|
+
"children": {
|
|
258
|
+
"Resource": {
|
|
259
|
+
"id": "Resource",
|
|
260
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/KinesisStreamGetRecordsIteratorAgeAlarm/Resource",
|
|
261
|
+
"attributes": {
|
|
262
|
+
"aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm",
|
|
263
|
+
"aws:cdk:cloudformation:props": {
|
|
264
|
+
"alarmDescription": "Consumer Record Processing Falling Behind, there is risk for data loss due to record expiration.",
|
|
265
|
+
"comparisonOperator": "GreaterThanOrEqualToThreshold",
|
|
266
|
+
"evaluationPeriods": 1,
|
|
267
|
+
"metricName": "GetRecords.IteratorAgeMilliseconds",
|
|
268
|
+
"namespace": "AWS/Kinesis",
|
|
269
|
+
"period": 300,
|
|
270
|
+
"statistic": "Maximum",
|
|
271
|
+
"threshold": 43200000
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"constructInfo": {
|
|
275
|
+
"fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm",
|
|
276
|
+
"version": "2.118.0"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"constructInfo": {
|
|
281
|
+
"fqn": "aws-cdk-lib.aws_cloudwatch.Alarm",
|
|
282
|
+
"version": "2.118.0"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"KinesisStreamReadProvisionedThroughputExceededAlarm": {
|
|
286
|
+
"id": "KinesisStreamReadProvisionedThroughputExceededAlarm",
|
|
287
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/KinesisStreamReadProvisionedThroughputExceededAlarm",
|
|
288
|
+
"children": {
|
|
289
|
+
"Resource": {
|
|
290
|
+
"id": "Resource",
|
|
291
|
+
"path": "lamkin-noArguments/test-lambda-kinesisstreams/KinesisStreamReadProvisionedThroughputExceededAlarm/Resource",
|
|
292
|
+
"attributes": {
|
|
293
|
+
"aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm",
|
|
294
|
+
"aws:cdk:cloudformation:props": {
|
|
295
|
+
"alarmDescription": "Consumer Application is Reading at a Slower Rate Than Expected.",
|
|
296
|
+
"comparisonOperator": "GreaterThanThreshold",
|
|
297
|
+
"evaluationPeriods": 1,
|
|
298
|
+
"metricName": "ReadProvisionedThroughputExceeded",
|
|
299
|
+
"namespace": "AWS/Kinesis",
|
|
300
|
+
"period": 300,
|
|
301
|
+
"statistic": "Average",
|
|
302
|
+
"threshold": 0
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"constructInfo": {
|
|
306
|
+
"fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm",
|
|
307
|
+
"version": "2.118.0"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"constructInfo": {
|
|
312
|
+
"fqn": "aws-cdk-lib.aws_cloudwatch.Alarm",
|
|
313
|
+
"version": "2.118.0"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"constructInfo": {
|
|
318
|
+
"fqn": "@aws-solutions-constructs/aws-lambda-kinesisstreams.LambdaToKinesisStreams",
|
|
319
|
+
"version": "2.50.0"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"Integ": {
|
|
323
|
+
"id": "Integ",
|
|
324
|
+
"path": "lamkin-noArguments/Integ",
|
|
325
|
+
"children": {
|
|
326
|
+
"DefaultTest": {
|
|
327
|
+
"id": "DefaultTest",
|
|
328
|
+
"path": "lamkin-noArguments/Integ/DefaultTest",
|
|
329
|
+
"children": {
|
|
330
|
+
"Default": {
|
|
331
|
+
"id": "Default",
|
|
332
|
+
"path": "lamkin-noArguments/Integ/DefaultTest/Default",
|
|
333
|
+
"constructInfo": {
|
|
334
|
+
"fqn": "constructs.Construct",
|
|
335
|
+
"version": "10.0.0"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"DeployAssert": {
|
|
339
|
+
"id": "DeployAssert",
|
|
340
|
+
"path": "lamkin-noArguments/Integ/DefaultTest/DeployAssert",
|
|
341
|
+
"children": {
|
|
342
|
+
"BootstrapVersion": {
|
|
343
|
+
"id": "BootstrapVersion",
|
|
344
|
+
"path": "lamkin-noArguments/Integ/DefaultTest/DeployAssert/BootstrapVersion",
|
|
345
|
+
"constructInfo": {
|
|
346
|
+
"fqn": "aws-cdk-lib.CfnParameter",
|
|
347
|
+
"version": "2.118.0"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"CheckBootstrapVersion": {
|
|
351
|
+
"id": "CheckBootstrapVersion",
|
|
352
|
+
"path": "lamkin-noArguments/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
|
|
353
|
+
"constructInfo": {
|
|
354
|
+
"fqn": "aws-cdk-lib.CfnRule",
|
|
355
|
+
"version": "2.118.0"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"constructInfo": {
|
|
360
|
+
"fqn": "aws-cdk-lib.Stack",
|
|
361
|
+
"version": "2.118.0"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"constructInfo": {
|
|
366
|
+
"fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
|
|
367
|
+
"version": "2.118.0-alpha.0"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"constructInfo": {
|
|
372
|
+
"fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
|
|
373
|
+
"version": "2.118.0-alpha.0"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"BootstrapVersion": {
|
|
377
|
+
"id": "BootstrapVersion",
|
|
378
|
+
"path": "lamkin-noArguments/BootstrapVersion",
|
|
379
|
+
"constructInfo": {
|
|
380
|
+
"fqn": "aws-cdk-lib.CfnParameter",
|
|
381
|
+
"version": "2.118.0"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"CheckBootstrapVersion": {
|
|
385
|
+
"id": "CheckBootstrapVersion",
|
|
386
|
+
"path": "lamkin-noArguments/CheckBootstrapVersion",
|
|
387
|
+
"constructInfo": {
|
|
388
|
+
"fqn": "aws-cdk-lib.CfnRule",
|
|
389
|
+
"version": "2.118.0"
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"constructInfo": {
|
|
394
|
+
"fqn": "aws-cdk-lib.Stack",
|
|
395
|
+
"version": "2.118.0"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"Tree": {
|
|
399
|
+
"id": "Tree",
|
|
400
|
+
"path": "Tree",
|
|
401
|
+
"constructInfo": {
|
|
402
|
+
"fqn": "constructs.Construct",
|
|
403
|
+
"version": "10.0.0"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"constructInfo": {
|
|
408
|
+
"fqn": "aws-cdk-lib.App",
|
|
409
|
+
"version": "2.118.0"
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Resources": {
|
|
3
|
-
"LambdaFunctionServiceRole0C4CDE0B": {
|
|
4
|
-
"Type": "AWS::IAM::Role",
|
|
5
|
-
"Properties": {
|
|
6
|
-
"AssumeRolePolicyDocument": {
|
|
7
|
-
"Statement": [
|
|
8
|
-
{
|
|
9
|
-
"Action": "sts:AssumeRole",
|
|
10
|
-
"Effect": "Allow",
|
|
11
|
-
"Principal": {
|
|
12
|
-
"Service": "lambda.amazonaws.com"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"Version": "2012-10-17"
|
|
17
|
-
},
|
|
18
|
-
"Policies": [
|
|
19
|
-
{
|
|
20
|
-
"PolicyDocument": {
|
|
21
|
-
"Statement": [
|
|
22
|
-
{
|
|
23
|
-
"Action": [
|
|
24
|
-
"logs:CreateLogGroup",
|
|
25
|
-
"logs:CreateLogStream",
|
|
26
|
-
"logs:PutLogEvents"
|
|
27
|
-
],
|
|
28
|
-
"Effect": "Allow",
|
|
29
|
-
"Resource": {
|
|
30
|
-
"Fn::Join": [
|
|
31
|
-
"",
|
|
32
|
-
[
|
|
33
|
-
"arn:",
|
|
34
|
-
{
|
|
35
|
-
"Ref": "AWS::Partition"
|
|
36
|
-
},
|
|
37
|
-
":logs:",
|
|
38
|
-
{
|
|
39
|
-
"Ref": "AWS::Region"
|
|
40
|
-
},
|
|
41
|
-
":",
|
|
42
|
-
{
|
|
43
|
-
"Ref": "AWS::AccountId"
|
|
44
|
-
},
|
|
45
|
-
":log-group:/aws/lambda/*"
|
|
46
|
-
]
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"Version": "2012-10-17"
|
|
52
|
-
},
|
|
53
|
-
"PolicyName": "LambdaFunctionServiceRolePolicy"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"LambdaFunctionServiceRoleDefaultPolicy126C8897": {
|
|
59
|
-
"Type": "AWS::IAM::Policy",
|
|
60
|
-
"Properties": {
|
|
61
|
-
"PolicyDocument": {
|
|
62
|
-
"Statement": [
|
|
63
|
-
{
|
|
64
|
-
"Action": [
|
|
65
|
-
"xray:PutTraceSegments",
|
|
66
|
-
"xray:PutTelemetryRecords"
|
|
67
|
-
],
|
|
68
|
-
"Effect": "Allow",
|
|
69
|
-
"Resource": "*"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"Action": [
|
|
73
|
-
"kinesis:ListShards",
|
|
74
|
-
"kinesis:PutRecord",
|
|
75
|
-
"kinesis:PutRecords"
|
|
76
|
-
],
|
|
77
|
-
"Effect": "Allow",
|
|
78
|
-
"Resource": {
|
|
79
|
-
"Fn::GetAtt": [
|
|
80
|
-
"testlambdakinesisstreamsKinesisStream11A82116",
|
|
81
|
-
"Arn"
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"Version": "2012-10-17"
|
|
87
|
-
},
|
|
88
|
-
"PolicyName": "LambdaFunctionServiceRoleDefaultPolicy126C8897",
|
|
89
|
-
"Roles": [
|
|
90
|
-
{
|
|
91
|
-
"Ref": "LambdaFunctionServiceRole0C4CDE0B"
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"Metadata": {
|
|
96
|
-
"cfn_nag": {
|
|
97
|
-
"rules_to_suppress": [
|
|
98
|
-
{
|
|
99
|
-
"id": "W12",
|
|
100
|
-
"reason": "Lambda needs the following minimum required permissions to send trace data to X-Ray and access ENIs in a VPC."
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"LambdaFunctionBF21E41F": {
|
|
107
|
-
"Type": "AWS::Lambda::Function",
|
|
108
|
-
"Properties": {
|
|
109
|
-
"Code": {
|
|
110
|
-
"S3Bucket": {
|
|
111
|
-
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
112
|
-
},
|
|
113
|
-
"S3Key": "c7dc0cc1b24bda1d2a5345f61897eee32184906649fdb1de93853c512e129dbf.zip"
|
|
114
|
-
},
|
|
115
|
-
"Environment": {
|
|
116
|
-
"Variables": {
|
|
117
|
-
"KINESIS_DATASTREAM_NAME": {
|
|
118
|
-
"Ref": "testlambdakinesisstreamsKinesisStream11A82116"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
"Handler": "index.handler",
|
|
123
|
-
"Role": {
|
|
124
|
-
"Fn::GetAtt": [
|
|
125
|
-
"LambdaFunctionServiceRole0C4CDE0B",
|
|
126
|
-
"Arn"
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
"Runtime": "nodejs18.x",
|
|
130
|
-
"TracingConfig": {
|
|
131
|
-
"Mode": "Active"
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
"DependsOn": [
|
|
135
|
-
"LambdaFunctionServiceRoleDefaultPolicy126C8897",
|
|
136
|
-
"LambdaFunctionServiceRole0C4CDE0B"
|
|
137
|
-
],
|
|
138
|
-
"Metadata": {
|
|
139
|
-
"cfn_nag": {
|
|
140
|
-
"rules_to_suppress": [
|
|
141
|
-
{
|
|
142
|
-
"id": "W58",
|
|
143
|
-
"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."
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"id": "W89",
|
|
147
|
-
"reason": "This is not a rule for the general case, just for specific use cases/industries"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"id": "W92",
|
|
151
|
-
"reason": "Impossible for us to define the correct concurrency for clients"
|
|
152
|
-
}
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
"testlambdakinesisstreamsKinesisStream11A82116": {
|
|
158
|
-
"Type": "AWS::Kinesis::Stream",
|
|
159
|
-
"Properties": {
|
|
160
|
-
"RetentionPeriodHours": 24,
|
|
161
|
-
"ShardCount": 1,
|
|
162
|
-
"StreamEncryption": {
|
|
163
|
-
"EncryptionType": "KMS",
|
|
164
|
-
"KeyId": "alias/aws/kinesis"
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
"testlambdakinesisstreamsKinesisStreamGetRecordsIteratorAgeAlarmC4A0FF00": {
|
|
169
|
-
"Type": "AWS::CloudWatch::Alarm",
|
|
170
|
-
"Properties": {
|
|
171
|
-
"AlarmDescription": "Consumer Record Processing Falling Behind, there is risk for data loss due to record expiration.",
|
|
172
|
-
"ComparisonOperator": "GreaterThanOrEqualToThreshold",
|
|
173
|
-
"EvaluationPeriods": 1,
|
|
174
|
-
"MetricName": "GetRecords.IteratorAgeMilliseconds",
|
|
175
|
-
"Namespace": "AWS/Kinesis",
|
|
176
|
-
"Period": 300,
|
|
177
|
-
"Statistic": "Maximum",
|
|
178
|
-
"Threshold": 43200000
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"testlambdakinesisstreamsKinesisStreamReadProvisionedThroughputExceededAlarm9732E188": {
|
|
182
|
-
"Type": "AWS::CloudWatch::Alarm",
|
|
183
|
-
"Properties": {
|
|
184
|
-
"AlarmDescription": "Consumer Application is Reading at a Slower Rate Than Expected.",
|
|
185
|
-
"ComparisonOperator": "GreaterThanThreshold",
|
|
186
|
-
"EvaluationPeriods": 1,
|
|
187
|
-
"MetricName": "ReadProvisionedThroughputExceeded",
|
|
188
|
-
"Namespace": "AWS/Kinesis",
|
|
189
|
-
"Period": 300,
|
|
190
|
-
"Statistic": "Average",
|
|
191
|
-
"Threshold": 0
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
"Parameters": {
|
|
196
|
-
"BootstrapVersion": {
|
|
197
|
-
"Type": "AWS::SSM::Parameter::Value<String>",
|
|
198
|
-
"Default": "/cdk-bootstrap/hnb659fds/version",
|
|
199
|
-
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
"Rules": {
|
|
203
|
-
"CheckBootstrapVersion": {
|
|
204
|
-
"Assertions": [
|
|
205
|
-
{
|
|
206
|
-
"Assert": {
|
|
207
|
-
"Fn::Not": [
|
|
208
|
-
{
|
|
209
|
-
"Fn::Contains": [
|
|
210
|
-
[
|
|
211
|
-
"1",
|
|
212
|
-
"2",
|
|
213
|
-
"3",
|
|
214
|
-
"4",
|
|
215
|
-
"5"
|
|
216
|
-
],
|
|
217
|
-
{
|
|
218
|
-
"Ref": "BootstrapVersion"
|
|
219
|
-
}
|
|
220
|
-
]
|
|
221
|
-
}
|
|
222
|
-
]
|
|
223
|
-
},
|
|
224
|
-
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
|
|
225
|
-
}
|
|
226
|
-
]
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|