@aws-solutions-constructs/aws-kinesisfirehose-s3 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.
Files changed (70) hide show
  1. package/.eslintignore +2 -0
  2. package/.jsii +50 -5
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +12 -11
  6. package/test/integ.fhss3-customLoggingBucket.js +6 -3
  7. package/test/integ.fhss3-customLoggingBucket.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  8. package/test/integ.fhss3-customLoggingBucket.js.snapshot/cdk.out +1 -0
  9. package/test/integ.fhss3-customLoggingBucket.js.snapshot/fhss3-customLoggingBucket.assets.json +32 -0
  10. package/test/integ.fhss3-customLoggingBucket.js.snapshot/fhss3-customLoggingBucket.template.json +586 -0
  11. package/test/integ.fhss3-customLoggingBucket.js.snapshot/fhss3customLoggingBucketIntegDefaultTestDeployAssertA125B70A.assets.json +19 -0
  12. package/test/integ.fhss3-customLoggingBucket.js.snapshot/fhss3customLoggingBucketIntegDefaultTestDeployAssertA125B70A.template.json +36 -0
  13. package/test/integ.fhss3-customLoggingBucket.js.snapshot/integ.json +12 -0
  14. package/test/integ.fhss3-customLoggingBucket.js.snapshot/manifest.json +179 -0
  15. package/test/integ.fhss3-customLoggingBucket.js.snapshot/tree.json +753 -0
  16. package/test/integ.fhss3-no-arguments.js +6 -3
  17. package/test/integ.fhss3-no-arguments.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  18. package/test/integ.fhss3-no-arguments.js.snapshot/cdk.out +1 -0
  19. package/test/integ.fhss3-no-arguments.js.snapshot/fhss3-no-arguments.assets.json +32 -0
  20. package/test/integ.fhss3-no-arguments.js.snapshot/fhss3-no-arguments.template.json +638 -0
  21. package/test/integ.fhss3-no-arguments.js.snapshot/fhss3noargumentsIntegDefaultTestDeployAssert4B27D283.assets.json +19 -0
  22. package/test/integ.fhss3-no-arguments.js.snapshot/fhss3noargumentsIntegDefaultTestDeployAssert4B27D283.template.json +36 -0
  23. package/test/integ.fhss3-no-arguments.js.snapshot/integ.json +12 -0
  24. package/test/integ.fhss3-no-arguments.js.snapshot/manifest.json +185 -0
  25. package/test/integ.fhss3-no-arguments.js.snapshot/tree.json +803 -0
  26. package/test/integ.fhss3-noLoggingBucket.js +5 -2
  27. package/test/integ.fhss3-noLoggingBucket.js.snapshot/cdk.out +1 -0
  28. package/test/integ.fhss3-noLoggingBucket.js.snapshot/fhss3-noLoggingBucket.assets.json +19 -0
  29. package/test/integ.fhss3-noLoggingBucket.js.snapshot/fhss3-noLoggingBucket.template.json +320 -0
  30. package/test/integ.fhss3-noLoggingBucket.js.snapshot/fhss3noLoggingBucketIntegDefaultTestDeployAssert461787D6.assets.json +19 -0
  31. package/test/integ.fhss3-noLoggingBucket.js.snapshot/fhss3noLoggingBucketIntegDefaultTestDeployAssert461787D6.template.json +36 -0
  32. package/test/integ.fhss3-noLoggingBucket.js.snapshot/integ.json +12 -0
  33. package/test/integ.fhss3-noLoggingBucket.js.snapshot/manifest.json +149 -0
  34. package/test/integ.fhss3-noLoggingBucket.js.snapshot/tree.json +496 -0
  35. package/test/integ.fhss3-pre-existing-bucket.js +6 -3
  36. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  37. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/cdk.out +1 -0
  38. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/fhss3-pre-existing-bucket.assets.json +32 -0
  39. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/fhss3-pre-existing-bucket.template.json +633 -0
  40. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/fhss3preexistingbucketIntegDefaultTestDeployAssert84EBBD2B.assets.json +19 -0
  41. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/fhss3preexistingbucketIntegDefaultTestDeployAssert84EBBD2B.template.json +36 -0
  42. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/integ.json +12 -0
  43. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/manifest.json +185 -0
  44. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/tree.json +806 -0
  45. package/test/integ.fhss3-pre-existing-logging-bucket.js +6 -3
  46. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  47. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/cdk.out +1 -0
  48. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/fhss3-pre-existing-logging-bucket.assets.json +32 -0
  49. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/fhss3-pre-existing-logging-bucket.template.json +803 -0
  50. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/fhss3preexistingloggingbucketIntegDefaultTestDeployAssert92015BF9.assets.json +19 -0
  51. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/fhss3preexistingloggingbucketIntegDefaultTestDeployAssert92015BF9.template.json +36 -0
  52. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/integ.json +12 -0
  53. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/manifest.json +203 -0
  54. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/tree.json +1001 -0
  55. package/test/integ.fhss3-two-instances.js +6 -3
  56. package/test/integ.fhss3-two-instances.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +1 -0
  57. package/test/integ.fhss3-two-instances.js.snapshot/cdk.out +1 -0
  58. package/test/integ.fhss3-two-instances.js.snapshot/fhss3-two-instances.assets.json +32 -0
  59. package/test/integ.fhss3-two-instances.js.snapshot/fhss3-two-instances.template.json +1161 -0
  60. package/test/integ.fhss3-two-instances.js.snapshot/fhss3twoinstancesIntegDefaultTestDeployAssertFD2CF598.assets.json +19 -0
  61. package/test/integ.fhss3-two-instances.js.snapshot/fhss3twoinstancesIntegDefaultTestDeployAssertFD2CF598.template.json +36 -0
  62. package/test/integ.fhss3-two-instances.js.snapshot/integ.json +12 -0
  63. package/test/integ.fhss3-two-instances.js.snapshot/manifest.json +251 -0
  64. package/test/integ.fhss3-two-instances.js.snapshot/tree.json +1471 -0
  65. package/test/integ.fhss3-customLoggingBucket.expected.json +0 -586
  66. package/test/integ.fhss3-no-arguments.expected.json +0 -638
  67. package/test/integ.fhss3-noLoggingBucket.expected.json +0 -320
  68. package/test/integ.fhss3-pre-existing-bucket.expected.json +0 -633
  69. package/test/integ.fhss3-pre-existing-logging-bucket.expected.json +0 -803
  70. package/test/integ.fhss3-two-instances.expected.json +0 -1161
@@ -1,1161 +0,0 @@
1
- {
2
- "Description": "Integration Test for aws-cdk-apl-kinesisfirehose-s3",
3
- "Resources": {
4
- "firstconstructS3LoggingBucket7A5DAF91": {
5
- "Type": "AWS::S3::Bucket",
6
- "Properties": {
7
- "BucketEncryption": {
8
- "ServerSideEncryptionConfiguration": [
9
- {
10
- "ServerSideEncryptionByDefault": {
11
- "SSEAlgorithm": "AES256"
12
- }
13
- }
14
- ]
15
- },
16
- "PublicAccessBlockConfiguration": {
17
- "BlockPublicAcls": true,
18
- "BlockPublicPolicy": true,
19
- "IgnorePublicAcls": true,
20
- "RestrictPublicBuckets": true
21
- },
22
- "Tags": [
23
- {
24
- "Key": "aws-cdk:auto-delete-objects",
25
- "Value": "true"
26
- }
27
- ],
28
- "VersioningConfiguration": {
29
- "Status": "Enabled"
30
- }
31
- },
32
- "UpdateReplacePolicy": "Delete",
33
- "DeletionPolicy": "Delete",
34
- "Metadata": {
35
- "cfn_nag": {
36
- "rules_to_suppress": [
37
- {
38
- "id": "W35",
39
- "reason": "This S3 bucket is used as the access logging bucket for another bucket"
40
- }
41
- ]
42
- }
43
- }
44
- },
45
- "firstconstructS3LoggingBucketPolicy14219998": {
46
- "Type": "AWS::S3::BucketPolicy",
47
- "Properties": {
48
- "Bucket": {
49
- "Ref": "firstconstructS3LoggingBucket7A5DAF91"
50
- },
51
- "PolicyDocument": {
52
- "Statement": [
53
- {
54
- "Action": "s3:*",
55
- "Condition": {
56
- "Bool": {
57
- "aws:SecureTransport": "false"
58
- }
59
- },
60
- "Effect": "Deny",
61
- "Principal": {
62
- "AWS": "*"
63
- },
64
- "Resource": [
65
- {
66
- "Fn::GetAtt": [
67
- "firstconstructS3LoggingBucket7A5DAF91",
68
- "Arn"
69
- ]
70
- },
71
- {
72
- "Fn::Join": [
73
- "",
74
- [
75
- {
76
- "Fn::GetAtt": [
77
- "firstconstructS3LoggingBucket7A5DAF91",
78
- "Arn"
79
- ]
80
- },
81
- "/*"
82
- ]
83
- ]
84
- }
85
- ]
86
- },
87
- {
88
- "Action": [
89
- "s3:PutBucketPolicy",
90
- "s3:GetBucket*",
91
- "s3:List*",
92
- "s3:DeleteObject*"
93
- ],
94
- "Effect": "Allow",
95
- "Principal": {
96
- "AWS": {
97
- "Fn::GetAtt": [
98
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
99
- "Arn"
100
- ]
101
- }
102
- },
103
- "Resource": [
104
- {
105
- "Fn::GetAtt": [
106
- "firstconstructS3LoggingBucket7A5DAF91",
107
- "Arn"
108
- ]
109
- },
110
- {
111
- "Fn::Join": [
112
- "",
113
- [
114
- {
115
- "Fn::GetAtt": [
116
- "firstconstructS3LoggingBucket7A5DAF91",
117
- "Arn"
118
- ]
119
- },
120
- "/*"
121
- ]
122
- ]
123
- }
124
- ]
125
- },
126
- {
127
- "Action": "s3:PutObject",
128
- "Condition": {
129
- "ArnLike": {
130
- "aws:SourceArn": {
131
- "Fn::GetAtt": [
132
- "firstconstructS3Bucket58522C24",
133
- "Arn"
134
- ]
135
- }
136
- },
137
- "StringEquals": {
138
- "aws:SourceAccount": {
139
- "Ref": "AWS::AccountId"
140
- }
141
- }
142
- },
143
- "Effect": "Allow",
144
- "Principal": {
145
- "Service": "logging.s3.amazonaws.com"
146
- },
147
- "Resource": {
148
- "Fn::Join": [
149
- "",
150
- [
151
- {
152
- "Fn::GetAtt": [
153
- "firstconstructS3LoggingBucket7A5DAF91",
154
- "Arn"
155
- ]
156
- },
157
- "/*"
158
- ]
159
- ]
160
- }
161
- }
162
- ],
163
- "Version": "2012-10-17"
164
- }
165
- }
166
- },
167
- "firstconstructS3LoggingBucketAutoDeleteObjectsCustomResourceF1551A63": {
168
- "Type": "Custom::S3AutoDeleteObjects",
169
- "Properties": {
170
- "ServiceToken": {
171
- "Fn::GetAtt": [
172
- "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F",
173
- "Arn"
174
- ]
175
- },
176
- "BucketName": {
177
- "Ref": "firstconstructS3LoggingBucket7A5DAF91"
178
- }
179
- },
180
- "DependsOn": [
181
- "firstconstructS3LoggingBucketPolicy14219998"
182
- ],
183
- "UpdateReplacePolicy": "Delete",
184
- "DeletionPolicy": "Delete"
185
- },
186
- "firstconstructS3Bucket58522C24": {
187
- "Type": "AWS::S3::Bucket",
188
- "Properties": {
189
- "BucketEncryption": {
190
- "ServerSideEncryptionConfiguration": [
191
- {
192
- "ServerSideEncryptionByDefault": {
193
- "SSEAlgorithm": "AES256"
194
- }
195
- }
196
- ]
197
- },
198
- "LifecycleConfiguration": {
199
- "Rules": [
200
- {
201
- "NoncurrentVersionTransitions": [
202
- {
203
- "StorageClass": "GLACIER",
204
- "TransitionInDays": 90
205
- }
206
- ],
207
- "Status": "Enabled"
208
- }
209
- ]
210
- },
211
- "LoggingConfiguration": {
212
- "DestinationBucketName": {
213
- "Ref": "firstconstructS3LoggingBucket7A5DAF91"
214
- }
215
- },
216
- "PublicAccessBlockConfiguration": {
217
- "BlockPublicAcls": true,
218
- "BlockPublicPolicy": true,
219
- "IgnorePublicAcls": true,
220
- "RestrictPublicBuckets": true
221
- },
222
- "Tags": [
223
- {
224
- "Key": "aws-cdk:auto-delete-objects",
225
- "Value": "true"
226
- }
227
- ],
228
- "VersioningConfiguration": {
229
- "Status": "Enabled"
230
- }
231
- },
232
- "UpdateReplacePolicy": "Delete",
233
- "DeletionPolicy": "Delete"
234
- },
235
- "firstconstructS3BucketPolicyC7BBECCF": {
236
- "Type": "AWS::S3::BucketPolicy",
237
- "Properties": {
238
- "Bucket": {
239
- "Ref": "firstconstructS3Bucket58522C24"
240
- },
241
- "PolicyDocument": {
242
- "Statement": [
243
- {
244
- "Action": "s3:*",
245
- "Condition": {
246
- "Bool": {
247
- "aws:SecureTransport": "false"
248
- }
249
- },
250
- "Effect": "Deny",
251
- "Principal": {
252
- "AWS": "*"
253
- },
254
- "Resource": [
255
- {
256
- "Fn::GetAtt": [
257
- "firstconstructS3Bucket58522C24",
258
- "Arn"
259
- ]
260
- },
261
- {
262
- "Fn::Join": [
263
- "",
264
- [
265
- {
266
- "Fn::GetAtt": [
267
- "firstconstructS3Bucket58522C24",
268
- "Arn"
269
- ]
270
- },
271
- "/*"
272
- ]
273
- ]
274
- }
275
- ]
276
- },
277
- {
278
- "Action": [
279
- "s3:PutBucketPolicy",
280
- "s3:GetBucket*",
281
- "s3:List*",
282
- "s3:DeleteObject*"
283
- ],
284
- "Effect": "Allow",
285
- "Principal": {
286
- "AWS": {
287
- "Fn::GetAtt": [
288
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
289
- "Arn"
290
- ]
291
- }
292
- },
293
- "Resource": [
294
- {
295
- "Fn::GetAtt": [
296
- "firstconstructS3Bucket58522C24",
297
- "Arn"
298
- ]
299
- },
300
- {
301
- "Fn::Join": [
302
- "",
303
- [
304
- {
305
- "Fn::GetAtt": [
306
- "firstconstructS3Bucket58522C24",
307
- "Arn"
308
- ]
309
- },
310
- "/*"
311
- ]
312
- ]
313
- }
314
- ]
315
- }
316
- ],
317
- "Version": "2012-10-17"
318
- }
319
- }
320
- },
321
- "firstconstructS3BucketAutoDeleteObjectsCustomResourceB053DF99": {
322
- "Type": "Custom::S3AutoDeleteObjects",
323
- "Properties": {
324
- "ServiceToken": {
325
- "Fn::GetAtt": [
326
- "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F",
327
- "Arn"
328
- ]
329
- },
330
- "BucketName": {
331
- "Ref": "firstconstructS3Bucket58522C24"
332
- }
333
- },
334
- "DependsOn": [
335
- "firstconstructS3BucketPolicyC7BBECCF"
336
- ],
337
- "UpdateReplacePolicy": "Delete",
338
- "DeletionPolicy": "Delete"
339
- },
340
- "firstconstructfirehoseloggroup6E34E778": {
341
- "Type": "AWS::Logs::LogGroup",
342
- "UpdateReplacePolicy": "Retain",
343
- "DeletionPolicy": "Retain",
344
- "Metadata": {
345
- "cfn_nag": {
346
- "rules_to_suppress": [
347
- {
348
- "id": "W86",
349
- "reason": "Retention period for CloudWatchLogs LogGroups are set to 'Never Expire' to preserve customer data indefinitely"
350
- },
351
- {
352
- "id": "W84",
353
- "reason": "By default CloudWatchLogs LogGroups data is encrypted using the CloudWatch server-side encryption keys (AWS Managed Keys)"
354
- }
355
- ]
356
- }
357
- }
358
- },
359
- "firstconstructfirehoseloggroupfirehoselogstream9883B2C1": {
360
- "Type": "AWS::Logs::LogStream",
361
- "Properties": {
362
- "LogGroupName": {
363
- "Ref": "firstconstructfirehoseloggroup6E34E778"
364
- }
365
- },
366
- "UpdateReplacePolicy": "Retain",
367
- "DeletionPolicy": "Retain"
368
- },
369
- "firstconstructKinesisFirehoseRoleB93C8983": {
370
- "Type": "AWS::IAM::Role",
371
- "Properties": {
372
- "AssumeRolePolicyDocument": {
373
- "Statement": [
374
- {
375
- "Action": "sts:AssumeRole",
376
- "Effect": "Allow",
377
- "Principal": {
378
- "Service": "firehose.amazonaws.com"
379
- }
380
- }
381
- ],
382
- "Version": "2012-10-17"
383
- }
384
- }
385
- },
386
- "firstconstructKinesisFirehosePolicyC2362A56": {
387
- "Type": "AWS::IAM::Policy",
388
- "Properties": {
389
- "PolicyDocument": {
390
- "Statement": [
391
- {
392
- "Action": [
393
- "s3:AbortMultipartUpload",
394
- "s3:GetBucketLocation",
395
- "s3:GetObject",
396
- "s3:ListBucket",
397
- "s3:ListBucketMultipartUploads",
398
- "s3:PutObject"
399
- ],
400
- "Effect": "Allow",
401
- "Resource": [
402
- {
403
- "Fn::GetAtt": [
404
- "firstconstructS3Bucket58522C24",
405
- "Arn"
406
- ]
407
- },
408
- {
409
- "Fn::Join": [
410
- "",
411
- [
412
- {
413
- "Fn::GetAtt": [
414
- "firstconstructS3Bucket58522C24",
415
- "Arn"
416
- ]
417
- },
418
- "/*"
419
- ]
420
- ]
421
- }
422
- ]
423
- },
424
- {
425
- "Action": "logs:PutLogEvents",
426
- "Effect": "Allow",
427
- "Resource": {
428
- "Fn::Join": [
429
- "",
430
- [
431
- "arn:",
432
- {
433
- "Ref": "AWS::Partition"
434
- },
435
- ":logs:",
436
- {
437
- "Ref": "AWS::Region"
438
- },
439
- ":",
440
- {
441
- "Ref": "AWS::AccountId"
442
- },
443
- ":log-group:",
444
- {
445
- "Ref": "firstconstructfirehoseloggroup6E34E778"
446
- },
447
- ":log-stream:",
448
- {
449
- "Ref": "firstconstructfirehoseloggroupfirehoselogstream9883B2C1"
450
- }
451
- ]
452
- ]
453
- }
454
- }
455
- ],
456
- "Version": "2012-10-17"
457
- },
458
- "PolicyName": "firstconstructKinesisFirehosePolicyC2362A56",
459
- "Roles": [
460
- {
461
- "Ref": "firstconstructKinesisFirehoseRoleB93C8983"
462
- }
463
- ]
464
- }
465
- },
466
- "firstconstructKinesisFirehoseE18EBAA6": {
467
- "Type": "AWS::KinesisFirehose::DeliveryStream",
468
- "Properties": {
469
- "DeliveryStreamEncryptionConfigurationInput": {
470
- "KeyType": "AWS_OWNED_CMK"
471
- },
472
- "DeliveryStreamName": "KinesisFirehosefhss3twoinstancesfirstconstructDCFDB833",
473
- "ExtendedS3DestinationConfiguration": {
474
- "BucketARN": {
475
- "Fn::GetAtt": [
476
- "firstconstructS3Bucket58522C24",
477
- "Arn"
478
- ]
479
- },
480
- "BufferingHints": {
481
- "IntervalInSeconds": 300,
482
- "SizeInMBs": 5
483
- },
484
- "CloudWatchLoggingOptions": {
485
- "Enabled": true,
486
- "LogGroupName": {
487
- "Ref": "firstconstructfirehoseloggroup6E34E778"
488
- },
489
- "LogStreamName": {
490
- "Ref": "firstconstructfirehoseloggroupfirehoselogstream9883B2C1"
491
- }
492
- },
493
- "CompressionFormat": "GZIP",
494
- "EncryptionConfiguration": {
495
- "KMSEncryptionConfig": {
496
- "AWSKMSKeyARN": {
497
- "Fn::Join": [
498
- "",
499
- [
500
- "arn:",
501
- {
502
- "Ref": "AWS::Partition"
503
- },
504
- ":kms:",
505
- {
506
- "Ref": "AWS::Region"
507
- },
508
- ":",
509
- {
510
- "Ref": "AWS::AccountId"
511
- },
512
- ":alias/aws/s3"
513
- ]
514
- ]
515
- }
516
- }
517
- },
518
- "RoleARN": {
519
- "Fn::GetAtt": [
520
- "firstconstructKinesisFirehoseRoleB93C8983",
521
- "Arn"
522
- ]
523
- }
524
- }
525
- }
526
- },
527
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": {
528
- "Type": "AWS::IAM::Role",
529
- "Properties": {
530
- "AssumeRolePolicyDocument": {
531
- "Version": "2012-10-17",
532
- "Statement": [
533
- {
534
- "Action": "sts:AssumeRole",
535
- "Effect": "Allow",
536
- "Principal": {
537
- "Service": "lambda.amazonaws.com"
538
- }
539
- }
540
- ]
541
- },
542
- "ManagedPolicyArns": [
543
- {
544
- "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
545
- }
546
- ]
547
- }
548
- },
549
- "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": {
550
- "Type": "AWS::Lambda::Function",
551
- "Properties": {
552
- "Code": {
553
- "S3Bucket": {
554
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
555
- },
556
- "S3Key": "b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6.zip"
557
- },
558
- "Timeout": 900,
559
- "MemorySize": 128,
560
- "Handler": "index.handler",
561
- "Role": {
562
- "Fn::GetAtt": [
563
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
564
- "Arn"
565
- ]
566
- },
567
- "Runtime": "nodejs18.x",
568
- "Description": {
569
- "Fn::Join": [
570
- "",
571
- [
572
- "Lambda function for auto-deleting objects in ",
573
- {
574
- "Ref": "firstconstructS3LoggingBucket7A5DAF91"
575
- },
576
- " S3 bucket."
577
- ]
578
- ]
579
- }
580
- },
581
- "DependsOn": [
582
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092"
583
- ],
584
- "Metadata": {
585
- "cfn_nag": {
586
- "rules_to_suppress": [
587
- {
588
- "id": "W58",
589
- "reason": "CDK generated custom resource"
590
- },
591
- {
592
- "id": "W89",
593
- "reason": "CDK generated custom resource"
594
- },
595
- {
596
- "id": "W92",
597
- "reason": "CDK generated custom resource"
598
- }
599
- ]
600
- }
601
- }
602
- },
603
- "secondconstructS3LoggingBucketBB57C475": {
604
- "Type": "AWS::S3::Bucket",
605
- "Properties": {
606
- "BucketEncryption": {
607
- "ServerSideEncryptionConfiguration": [
608
- {
609
- "ServerSideEncryptionByDefault": {
610
- "SSEAlgorithm": "AES256"
611
- }
612
- }
613
- ]
614
- },
615
- "PublicAccessBlockConfiguration": {
616
- "BlockPublicAcls": true,
617
- "BlockPublicPolicy": true,
618
- "IgnorePublicAcls": true,
619
- "RestrictPublicBuckets": true
620
- },
621
- "Tags": [
622
- {
623
- "Key": "aws-cdk:auto-delete-objects",
624
- "Value": "true"
625
- }
626
- ],
627
- "VersioningConfiguration": {
628
- "Status": "Enabled"
629
- }
630
- },
631
- "UpdateReplacePolicy": "Delete",
632
- "DeletionPolicy": "Delete",
633
- "Metadata": {
634
- "cfn_nag": {
635
- "rules_to_suppress": [
636
- {
637
- "id": "W35",
638
- "reason": "This S3 bucket is used as the access logging bucket for another bucket"
639
- }
640
- ]
641
- }
642
- }
643
- },
644
- "secondconstructS3LoggingBucketPolicy88BAA4BE": {
645
- "Type": "AWS::S3::BucketPolicy",
646
- "Properties": {
647
- "Bucket": {
648
- "Ref": "secondconstructS3LoggingBucketBB57C475"
649
- },
650
- "PolicyDocument": {
651
- "Statement": [
652
- {
653
- "Action": "s3:*",
654
- "Condition": {
655
- "Bool": {
656
- "aws:SecureTransport": "false"
657
- }
658
- },
659
- "Effect": "Deny",
660
- "Principal": {
661
- "AWS": "*"
662
- },
663
- "Resource": [
664
- {
665
- "Fn::GetAtt": [
666
- "secondconstructS3LoggingBucketBB57C475",
667
- "Arn"
668
- ]
669
- },
670
- {
671
- "Fn::Join": [
672
- "",
673
- [
674
- {
675
- "Fn::GetAtt": [
676
- "secondconstructS3LoggingBucketBB57C475",
677
- "Arn"
678
- ]
679
- },
680
- "/*"
681
- ]
682
- ]
683
- }
684
- ]
685
- },
686
- {
687
- "Action": [
688
- "s3:PutBucketPolicy",
689
- "s3:GetBucket*",
690
- "s3:List*",
691
- "s3:DeleteObject*"
692
- ],
693
- "Effect": "Allow",
694
- "Principal": {
695
- "AWS": {
696
- "Fn::GetAtt": [
697
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
698
- "Arn"
699
- ]
700
- }
701
- },
702
- "Resource": [
703
- {
704
- "Fn::GetAtt": [
705
- "secondconstructS3LoggingBucketBB57C475",
706
- "Arn"
707
- ]
708
- },
709
- {
710
- "Fn::Join": [
711
- "",
712
- [
713
- {
714
- "Fn::GetAtt": [
715
- "secondconstructS3LoggingBucketBB57C475",
716
- "Arn"
717
- ]
718
- },
719
- "/*"
720
- ]
721
- ]
722
- }
723
- ]
724
- },
725
- {
726
- "Action": "s3:PutObject",
727
- "Condition": {
728
- "ArnLike": {
729
- "aws:SourceArn": {
730
- "Fn::GetAtt": [
731
- "secondconstructS3Bucket6D7D46A0",
732
- "Arn"
733
- ]
734
- }
735
- },
736
- "StringEquals": {
737
- "aws:SourceAccount": {
738
- "Ref": "AWS::AccountId"
739
- }
740
- }
741
- },
742
- "Effect": "Allow",
743
- "Principal": {
744
- "Service": "logging.s3.amazonaws.com"
745
- },
746
- "Resource": {
747
- "Fn::Join": [
748
- "",
749
- [
750
- {
751
- "Fn::GetAtt": [
752
- "secondconstructS3LoggingBucketBB57C475",
753
- "Arn"
754
- ]
755
- },
756
- "/*"
757
- ]
758
- ]
759
- }
760
- }
761
- ],
762
- "Version": "2012-10-17"
763
- }
764
- }
765
- },
766
- "secondconstructS3LoggingBucketAutoDeleteObjectsCustomResource11E44F47": {
767
- "Type": "Custom::S3AutoDeleteObjects",
768
- "Properties": {
769
- "ServiceToken": {
770
- "Fn::GetAtt": [
771
- "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F",
772
- "Arn"
773
- ]
774
- },
775
- "BucketName": {
776
- "Ref": "secondconstructS3LoggingBucketBB57C475"
777
- }
778
- },
779
- "DependsOn": [
780
- "secondconstructS3LoggingBucketPolicy88BAA4BE"
781
- ],
782
- "UpdateReplacePolicy": "Delete",
783
- "DeletionPolicy": "Delete"
784
- },
785
- "secondconstructS3Bucket6D7D46A0": {
786
- "Type": "AWS::S3::Bucket",
787
- "Properties": {
788
- "BucketEncryption": {
789
- "ServerSideEncryptionConfiguration": [
790
- {
791
- "ServerSideEncryptionByDefault": {
792
- "SSEAlgorithm": "AES256"
793
- }
794
- }
795
- ]
796
- },
797
- "LifecycleConfiguration": {
798
- "Rules": [
799
- {
800
- "NoncurrentVersionTransitions": [
801
- {
802
- "StorageClass": "GLACIER",
803
- "TransitionInDays": 90
804
- }
805
- ],
806
- "Status": "Enabled"
807
- }
808
- ]
809
- },
810
- "LoggingConfiguration": {
811
- "DestinationBucketName": {
812
- "Ref": "secondconstructS3LoggingBucketBB57C475"
813
- }
814
- },
815
- "PublicAccessBlockConfiguration": {
816
- "BlockPublicAcls": true,
817
- "BlockPublicPolicy": true,
818
- "IgnorePublicAcls": true,
819
- "RestrictPublicBuckets": true
820
- },
821
- "Tags": [
822
- {
823
- "Key": "aws-cdk:auto-delete-objects",
824
- "Value": "true"
825
- }
826
- ],
827
- "VersioningConfiguration": {
828
- "Status": "Enabled"
829
- }
830
- },
831
- "UpdateReplacePolicy": "Delete",
832
- "DeletionPolicy": "Delete"
833
- },
834
- "secondconstructS3BucketPolicy4B404A49": {
835
- "Type": "AWS::S3::BucketPolicy",
836
- "Properties": {
837
- "Bucket": {
838
- "Ref": "secondconstructS3Bucket6D7D46A0"
839
- },
840
- "PolicyDocument": {
841
- "Statement": [
842
- {
843
- "Action": "s3:*",
844
- "Condition": {
845
- "Bool": {
846
- "aws:SecureTransport": "false"
847
- }
848
- },
849
- "Effect": "Deny",
850
- "Principal": {
851
- "AWS": "*"
852
- },
853
- "Resource": [
854
- {
855
- "Fn::GetAtt": [
856
- "secondconstructS3Bucket6D7D46A0",
857
- "Arn"
858
- ]
859
- },
860
- {
861
- "Fn::Join": [
862
- "",
863
- [
864
- {
865
- "Fn::GetAtt": [
866
- "secondconstructS3Bucket6D7D46A0",
867
- "Arn"
868
- ]
869
- },
870
- "/*"
871
- ]
872
- ]
873
- }
874
- ]
875
- },
876
- {
877
- "Action": [
878
- "s3:PutBucketPolicy",
879
- "s3:GetBucket*",
880
- "s3:List*",
881
- "s3:DeleteObject*"
882
- ],
883
- "Effect": "Allow",
884
- "Principal": {
885
- "AWS": {
886
- "Fn::GetAtt": [
887
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
888
- "Arn"
889
- ]
890
- }
891
- },
892
- "Resource": [
893
- {
894
- "Fn::GetAtt": [
895
- "secondconstructS3Bucket6D7D46A0",
896
- "Arn"
897
- ]
898
- },
899
- {
900
- "Fn::Join": [
901
- "",
902
- [
903
- {
904
- "Fn::GetAtt": [
905
- "secondconstructS3Bucket6D7D46A0",
906
- "Arn"
907
- ]
908
- },
909
- "/*"
910
- ]
911
- ]
912
- }
913
- ]
914
- }
915
- ],
916
- "Version": "2012-10-17"
917
- }
918
- }
919
- },
920
- "secondconstructS3BucketAutoDeleteObjectsCustomResource02D988EB": {
921
- "Type": "Custom::S3AutoDeleteObjects",
922
- "Properties": {
923
- "ServiceToken": {
924
- "Fn::GetAtt": [
925
- "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F",
926
- "Arn"
927
- ]
928
- },
929
- "BucketName": {
930
- "Ref": "secondconstructS3Bucket6D7D46A0"
931
- }
932
- },
933
- "DependsOn": [
934
- "secondconstructS3BucketPolicy4B404A49"
935
- ],
936
- "UpdateReplacePolicy": "Delete",
937
- "DeletionPolicy": "Delete"
938
- },
939
- "secondconstructfirehoseloggroupB59EDD4C": {
940
- "Type": "AWS::Logs::LogGroup",
941
- "UpdateReplacePolicy": "Retain",
942
- "DeletionPolicy": "Retain",
943
- "Metadata": {
944
- "cfn_nag": {
945
- "rules_to_suppress": [
946
- {
947
- "id": "W86",
948
- "reason": "Retention period for CloudWatchLogs LogGroups are set to 'Never Expire' to preserve customer data indefinitely"
949
- },
950
- {
951
- "id": "W84",
952
- "reason": "By default CloudWatchLogs LogGroups data is encrypted using the CloudWatch server-side encryption keys (AWS Managed Keys)"
953
- }
954
- ]
955
- }
956
- }
957
- },
958
- "secondconstructfirehoseloggroupfirehoselogstreamA2E1EA50": {
959
- "Type": "AWS::Logs::LogStream",
960
- "Properties": {
961
- "LogGroupName": {
962
- "Ref": "secondconstructfirehoseloggroupB59EDD4C"
963
- }
964
- },
965
- "UpdateReplacePolicy": "Retain",
966
- "DeletionPolicy": "Retain"
967
- },
968
- "secondconstructKinesisFirehoseRoleD4EF457F": {
969
- "Type": "AWS::IAM::Role",
970
- "Properties": {
971
- "AssumeRolePolicyDocument": {
972
- "Statement": [
973
- {
974
- "Action": "sts:AssumeRole",
975
- "Effect": "Allow",
976
- "Principal": {
977
- "Service": "firehose.amazonaws.com"
978
- }
979
- }
980
- ],
981
- "Version": "2012-10-17"
982
- }
983
- }
984
- },
985
- "secondconstructKinesisFirehosePolicy7D9CF702": {
986
- "Type": "AWS::IAM::Policy",
987
- "Properties": {
988
- "PolicyDocument": {
989
- "Statement": [
990
- {
991
- "Action": [
992
- "s3:AbortMultipartUpload",
993
- "s3:GetBucketLocation",
994
- "s3:GetObject",
995
- "s3:ListBucket",
996
- "s3:ListBucketMultipartUploads",
997
- "s3:PutObject"
998
- ],
999
- "Effect": "Allow",
1000
- "Resource": [
1001
- {
1002
- "Fn::GetAtt": [
1003
- "secondconstructS3Bucket6D7D46A0",
1004
- "Arn"
1005
- ]
1006
- },
1007
- {
1008
- "Fn::Join": [
1009
- "",
1010
- [
1011
- {
1012
- "Fn::GetAtt": [
1013
- "secondconstructS3Bucket6D7D46A0",
1014
- "Arn"
1015
- ]
1016
- },
1017
- "/*"
1018
- ]
1019
- ]
1020
- }
1021
- ]
1022
- },
1023
- {
1024
- "Action": "logs:PutLogEvents",
1025
- "Effect": "Allow",
1026
- "Resource": {
1027
- "Fn::Join": [
1028
- "",
1029
- [
1030
- "arn:",
1031
- {
1032
- "Ref": "AWS::Partition"
1033
- },
1034
- ":logs:",
1035
- {
1036
- "Ref": "AWS::Region"
1037
- },
1038
- ":",
1039
- {
1040
- "Ref": "AWS::AccountId"
1041
- },
1042
- ":log-group:",
1043
- {
1044
- "Ref": "secondconstructfirehoseloggroupB59EDD4C"
1045
- },
1046
- ":log-stream:",
1047
- {
1048
- "Ref": "secondconstructfirehoseloggroupfirehoselogstreamA2E1EA50"
1049
- }
1050
- ]
1051
- ]
1052
- }
1053
- }
1054
- ],
1055
- "Version": "2012-10-17"
1056
- },
1057
- "PolicyName": "secondconstructKinesisFirehosePolicy7D9CF702",
1058
- "Roles": [
1059
- {
1060
- "Ref": "secondconstructKinesisFirehoseRoleD4EF457F"
1061
- }
1062
- ]
1063
- }
1064
- },
1065
- "secondconstructKinesisFirehoseB2AED79C": {
1066
- "Type": "AWS::KinesisFirehose::DeliveryStream",
1067
- "Properties": {
1068
- "DeliveryStreamEncryptionConfigurationInput": {
1069
- "KeyType": "AWS_OWNED_CMK"
1070
- },
1071
- "DeliveryStreamName": "KinesisFirehosefhss3twoinstancessecondconstructB86AFB63",
1072
- "ExtendedS3DestinationConfiguration": {
1073
- "BucketARN": {
1074
- "Fn::GetAtt": [
1075
- "secondconstructS3Bucket6D7D46A0",
1076
- "Arn"
1077
- ]
1078
- },
1079
- "BufferingHints": {
1080
- "IntervalInSeconds": 300,
1081
- "SizeInMBs": 5
1082
- },
1083
- "CloudWatchLoggingOptions": {
1084
- "Enabled": true,
1085
- "LogGroupName": {
1086
- "Ref": "secondconstructfirehoseloggroupB59EDD4C"
1087
- },
1088
- "LogStreamName": {
1089
- "Ref": "secondconstructfirehoseloggroupfirehoselogstreamA2E1EA50"
1090
- }
1091
- },
1092
- "CompressionFormat": "GZIP",
1093
- "EncryptionConfiguration": {
1094
- "KMSEncryptionConfig": {
1095
- "AWSKMSKeyARN": {
1096
- "Fn::Join": [
1097
- "",
1098
- [
1099
- "arn:",
1100
- {
1101
- "Ref": "AWS::Partition"
1102
- },
1103
- ":kms:",
1104
- {
1105
- "Ref": "AWS::Region"
1106
- },
1107
- ":",
1108
- {
1109
- "Ref": "AWS::AccountId"
1110
- },
1111
- ":alias/aws/s3"
1112
- ]
1113
- ]
1114
- }
1115
- }
1116
- },
1117
- "RoleARN": {
1118
- "Fn::GetAtt": [
1119
- "secondconstructKinesisFirehoseRoleD4EF457F",
1120
- "Arn"
1121
- ]
1122
- }
1123
- }
1124
- }
1125
- }
1126
- },
1127
- "Parameters": {
1128
- "BootstrapVersion": {
1129
- "Type": "AWS::SSM::Parameter::Value<String>",
1130
- "Default": "/cdk-bootstrap/hnb659fds/version",
1131
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
1132
- }
1133
- },
1134
- "Rules": {
1135
- "CheckBootstrapVersion": {
1136
- "Assertions": [
1137
- {
1138
- "Assert": {
1139
- "Fn::Not": [
1140
- {
1141
- "Fn::Contains": [
1142
- [
1143
- "1",
1144
- "2",
1145
- "3",
1146
- "4",
1147
- "5"
1148
- ],
1149
- {
1150
- "Ref": "BootstrapVersion"
1151
- }
1152
- ]
1153
- }
1154
- ]
1155
- },
1156
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
1157
- }
1158
- ]
1159
- }
1160
- }
1161
- }