@aws-solutions-constructs/aws-cloudfront-s3 2.58.1 → 2.60.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 +105 -34
- package/README.md +10 -7
- package/lib/index.d.ts +32 -17
- package/lib/index.js +33 -3
- package/package.json +8 -8
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js +16 -2
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.assets.json +15 -2
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.template.json +340 -15
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/manifest.json +37 -19
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/tree.json +342 -63
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js +16 -2
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.assets.json +15 -2
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.template.json +340 -15
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/manifest.json +37 -1
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/tree.json +318 -39
- package/test/integ.cfts3-bucket-with-http-origin.js.snapshot/cfts3-bucket-with-http-origin.assets.json +2 -2
- package/test/integ.cfts3-bucket-with-http-origin.js.snapshot/cfts3-bucket-with-http-origin.template.json +0 -7
- package/test/integ.cfts3-bucket-with-http-origin.js.snapshot/manifest.json +1 -1
- package/test/integ.cfts3-bucket-with-http-origin.js.snapshot/tree.json +31 -38
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js +13 -1
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.assets.json +15 -2
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.template.json +274 -13
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/manifest.json +27 -15
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/tree.json +279 -63
- package/test/integ.cfts3-custom-headers.js +5 -1
- package/test/integ.cfts3-custom-headers.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
- package/test/integ.cfts3-custom-headers.js.snapshot/cfts3-custom-headers.assets.json +5 -5
- package/test/integ.cfts3-custom-headers.js.snapshot/cfts3-custom-headers.template.json +1 -8
- package/test/integ.cfts3-custom-headers.js.snapshot/manifest.json +1 -1
- package/test/integ.cfts3-custom-headers.js.snapshot/tree.json +48 -55
- package/test/integ.cfts3-custom-originPath.js +5 -1
- package/test/integ.cfts3-custom-originPath.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
- package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.assets.json +5 -5
- package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.template.json +1 -8
- package/test/integ.cfts3-custom-originPath.js.snapshot/manifest.json +1 -1
- package/test/integ.cfts3-custom-originPath.js.snapshot/tree.json +46 -53
- package/test/integ.cfts3-customLoggingBuckets.js +6 -2
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.assets.json +5 -5
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.template.json +1 -21
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/manifest.json +1 -1
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/tree.json +46 -66
- package/test/integ.cfts3-existing-bucket.js +5 -1
- package/test/integ.cfts3-existing-bucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
- package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.assets.json +5 -5
- package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.template.json +1 -8
- package/test/integ.cfts3-existing-bucket.js.snapshot/manifest.json +1 -1
- package/test/integ.cfts3-existing-bucket.js.snapshot/tree.json +51 -58
- package/test/integ.cfts3-no-arguments.js +5 -1
- package/test/integ.cfts3-no-arguments.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
- package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.assets.json +5 -5
- package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.template.json +1 -8
- package/test/integ.cfts3-no-arguments.js.snapshot/manifest.json +1 -1
- package/test/integ.cfts3-no-arguments.js.snapshot/tree.json +46 -53
- package/test/integ.cfts3-no-logging.js +56 -0
- package/test/integ.cfts3-no-logging.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
- package/test/integ.cfts3-no-logging.js.snapshot/cdk.out +1 -0
- package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.assets.json +32 -0
- package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.template.json +434 -0
- package/test/integ.cfts3-no-logging.js.snapshot/cfts3nologgingIntegDefaultTestDeployAssert18393DDB.assets.json +19 -0
- package/test/integ.cfts3-no-logging.js.snapshot/cfts3nologgingIntegDefaultTestDeployAssert18393DDB.template.json +36 -0
- package/test/integ.cfts3-no-logging.js.snapshot/integ.json +12 -0
- package/test/integ.cfts3-no-logging.js.snapshot/manifest.json +155 -0
- package/test/integ.cfts3-no-logging.js.snapshot/tree.json +506 -0
- package/test/integ.cfts3-no-security-headers.js +5 -1
- package/test/integ.cfts3-no-security-headers.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
- package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.assets.json +5 -5
- package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.template.json +1 -8
- package/test/integ.cfts3-no-security-headers.js.snapshot/manifest.json +1 -1
- package/test/integ.cfts3-no-security-headers.js.snapshot/tree.json +44 -51
- package/test/test.cloudfront-s3.test.js +288 -52
- package/test/integ.cfts3-bucket-with-http-origin.js +0 -47
- package/test/integ.cfts3-custom-headers.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
- package/test/integ.cfts3-custom-originPath.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
- package/test/integ.cfts3-existing-bucket.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
- package/test/integ.cfts3-no-arguments.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
- package/test/integ.cfts3-no-security-headers.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
- /package/test/{integ.cfts3-bucket-with-http-origin.d.ts → integ.cfts3-no-logging.d.ts} +0 -0
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"constructInfo": {
|
|
52
52
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
53
|
-
"version": "2.
|
|
53
|
+
"version": "2.143.0"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"Policy": {
|
|
@@ -184,13 +184,13 @@
|
|
|
184
184
|
},
|
|
185
185
|
"constructInfo": {
|
|
186
186
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
|
|
187
|
-
"version": "2.
|
|
187
|
+
"version": "2.143.0"
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
"constructInfo": {
|
|
192
192
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
193
|
-
"version": "2.
|
|
193
|
+
"version": "2.143.0"
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
196
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -202,19 +202,19 @@
|
|
|
202
202
|
"path": "cfts3-custom-originPath/test-cloudfront-s3/S3LoggingBucket/AutoDeleteObjectsCustomResource/Default",
|
|
203
203
|
"constructInfo": {
|
|
204
204
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
205
|
-
"version": "2.
|
|
205
|
+
"version": "2.143.0"
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
"constructInfo": {
|
|
210
210
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
211
|
-
"version": "2.
|
|
211
|
+
"version": "2.143.0"
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
"constructInfo": {
|
|
216
216
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
217
|
-
"version": "2.
|
|
217
|
+
"version": "2.143.0"
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
220
|
"S3Bucket": {
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
},
|
|
274
274
|
"constructInfo": {
|
|
275
275
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
276
|
-
"version": "2.
|
|
276
|
+
"version": "2.143.0"
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
"Policy": {
|
|
@@ -411,13 +411,13 @@
|
|
|
411
411
|
},
|
|
412
412
|
"constructInfo": {
|
|
413
413
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
|
|
414
|
-
"version": "2.
|
|
414
|
+
"version": "2.143.0"
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
"constructInfo": {
|
|
419
419
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
420
|
-
"version": "2.
|
|
420
|
+
"version": "2.143.0"
|
|
421
421
|
}
|
|
422
422
|
},
|
|
423
423
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -429,19 +429,19 @@
|
|
|
429
429
|
"path": "cfts3-custom-originPath/test-cloudfront-s3/S3Bucket/AutoDeleteObjectsCustomResource/Default",
|
|
430
430
|
"constructInfo": {
|
|
431
431
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
432
|
-
"version": "2.
|
|
432
|
+
"version": "2.143.0"
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
},
|
|
436
436
|
"constructInfo": {
|
|
437
437
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
438
|
-
"version": "2.
|
|
438
|
+
"version": "2.143.0"
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
442
|
"constructInfo": {
|
|
443
443
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
444
|
-
"version": "2.
|
|
444
|
+
"version": "2.143.0"
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
"SetHttpSecurityHeaders": {
|
|
@@ -465,13 +465,13 @@
|
|
|
465
465
|
},
|
|
466
466
|
"constructInfo": {
|
|
467
467
|
"fqn": "aws-cdk-lib.aws_cloudfront.CfnFunction",
|
|
468
|
-
"version": "2.
|
|
468
|
+
"version": "2.143.0"
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
},
|
|
472
472
|
"constructInfo": {
|
|
473
473
|
"fqn": "aws-cdk-lib.aws_cloudfront.Function",
|
|
474
|
-
"version": "2.
|
|
474
|
+
"version": "2.143.0"
|
|
475
475
|
}
|
|
476
476
|
},
|
|
477
477
|
"CloudfrontLoggingBucketAccessLog": {
|
|
@@ -493,13 +493,6 @@
|
|
|
493
493
|
}
|
|
494
494
|
]
|
|
495
495
|
},
|
|
496
|
-
"ownershipControls": {
|
|
497
|
-
"rules": [
|
|
498
|
-
{
|
|
499
|
-
"objectOwnership": "ObjectWriter"
|
|
500
|
-
}
|
|
501
|
-
]
|
|
502
|
-
},
|
|
503
496
|
"publicAccessBlockConfiguration": {
|
|
504
497
|
"blockPublicAcls": true,
|
|
505
498
|
"blockPublicPolicy": true,
|
|
@@ -519,7 +512,7 @@
|
|
|
519
512
|
},
|
|
520
513
|
"constructInfo": {
|
|
521
514
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
522
|
-
"version": "2.
|
|
515
|
+
"version": "2.143.0"
|
|
523
516
|
}
|
|
524
517
|
},
|
|
525
518
|
"Policy": {
|
|
@@ -653,13 +646,13 @@
|
|
|
653
646
|
},
|
|
654
647
|
"constructInfo": {
|
|
655
648
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
|
|
656
|
-
"version": "2.
|
|
649
|
+
"version": "2.143.0"
|
|
657
650
|
}
|
|
658
651
|
}
|
|
659
652
|
},
|
|
660
653
|
"constructInfo": {
|
|
661
654
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
662
|
-
"version": "2.
|
|
655
|
+
"version": "2.143.0"
|
|
663
656
|
}
|
|
664
657
|
},
|
|
665
658
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -671,19 +664,19 @@
|
|
|
671
664
|
"path": "cfts3-custom-originPath/test-cloudfront-s3/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource/Default",
|
|
672
665
|
"constructInfo": {
|
|
673
666
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
674
|
-
"version": "2.
|
|
667
|
+
"version": "2.143.0"
|
|
675
668
|
}
|
|
676
669
|
}
|
|
677
670
|
},
|
|
678
671
|
"constructInfo": {
|
|
679
672
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
680
|
-
"version": "2.
|
|
673
|
+
"version": "2.143.0"
|
|
681
674
|
}
|
|
682
675
|
}
|
|
683
676
|
},
|
|
684
677
|
"constructInfo": {
|
|
685
678
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
686
|
-
"version": "2.
|
|
679
|
+
"version": "2.143.0"
|
|
687
680
|
}
|
|
688
681
|
},
|
|
689
682
|
"CloudfrontLoggingBucket": {
|
|
@@ -736,7 +729,7 @@
|
|
|
736
729
|
},
|
|
737
730
|
"constructInfo": {
|
|
738
731
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
739
|
-
"version": "2.
|
|
732
|
+
"version": "2.143.0"
|
|
740
733
|
}
|
|
741
734
|
},
|
|
742
735
|
"Policy": {
|
|
@@ -834,13 +827,13 @@
|
|
|
834
827
|
},
|
|
835
828
|
"constructInfo": {
|
|
836
829
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
|
|
837
|
-
"version": "2.
|
|
830
|
+
"version": "2.143.0"
|
|
838
831
|
}
|
|
839
832
|
}
|
|
840
833
|
},
|
|
841
834
|
"constructInfo": {
|
|
842
835
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
843
|
-
"version": "2.
|
|
836
|
+
"version": "2.143.0"
|
|
844
837
|
}
|
|
845
838
|
},
|
|
846
839
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -852,19 +845,19 @@
|
|
|
852
845
|
"path": "cfts3-custom-originPath/test-cloudfront-s3/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource/Default",
|
|
853
846
|
"constructInfo": {
|
|
854
847
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
855
|
-
"version": "2.
|
|
848
|
+
"version": "2.143.0"
|
|
856
849
|
}
|
|
857
850
|
}
|
|
858
851
|
},
|
|
859
852
|
"constructInfo": {
|
|
860
853
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
861
|
-
"version": "2.
|
|
854
|
+
"version": "2.143.0"
|
|
862
855
|
}
|
|
863
856
|
}
|
|
864
857
|
},
|
|
865
858
|
"constructInfo": {
|
|
866
859
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
867
|
-
"version": "2.
|
|
860
|
+
"version": "2.143.0"
|
|
868
861
|
}
|
|
869
862
|
},
|
|
870
863
|
"CloudFrontOac": {
|
|
@@ -904,7 +897,7 @@
|
|
|
904
897
|
},
|
|
905
898
|
"constructInfo": {
|
|
906
899
|
"fqn": "aws-cdk-lib.aws_cloudfront.CfnOriginAccessControl",
|
|
907
|
-
"version": "2.
|
|
900
|
+
"version": "2.143.0"
|
|
908
901
|
}
|
|
909
902
|
},
|
|
910
903
|
"CloudFrontDistribution": {
|
|
@@ -916,7 +909,7 @@
|
|
|
916
909
|
"path": "cfts3-custom-originPath/test-cloudfront-s3/CloudFrontDistribution/Origin1",
|
|
917
910
|
"constructInfo": {
|
|
918
911
|
"fqn": "constructs.Construct",
|
|
919
|
-
"version": "10.
|
|
912
|
+
"version": "10.3.0"
|
|
920
913
|
}
|
|
921
914
|
},
|
|
922
915
|
"Resource": {
|
|
@@ -975,19 +968,19 @@
|
|
|
975
968
|
},
|
|
976
969
|
"constructInfo": {
|
|
977
970
|
"fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
|
|
978
|
-
"version": "2.
|
|
971
|
+
"version": "2.143.0"
|
|
979
972
|
}
|
|
980
973
|
}
|
|
981
974
|
},
|
|
982
975
|
"constructInfo": {
|
|
983
976
|
"fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
|
|
984
|
-
"version": "2.
|
|
977
|
+
"version": "2.143.0"
|
|
985
978
|
}
|
|
986
979
|
}
|
|
987
980
|
},
|
|
988
981
|
"constructInfo": {
|
|
989
982
|
"fqn": "@aws-solutions-constructs/aws-cloudfront-s3.CloudFrontToS3",
|
|
990
|
-
"version": "2.
|
|
983
|
+
"version": "2.58.1"
|
|
991
984
|
}
|
|
992
985
|
},
|
|
993
986
|
"Custom::S3AutoDeleteObjectsCustomResourceProvider": {
|
|
@@ -999,7 +992,7 @@
|
|
|
999
992
|
"path": "cfts3-custom-originPath/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
|
|
1000
993
|
"constructInfo": {
|
|
1001
994
|
"fqn": "aws-cdk-lib.AssetStaging",
|
|
1002
|
-
"version": "2.
|
|
995
|
+
"version": "2.143.0"
|
|
1003
996
|
}
|
|
1004
997
|
},
|
|
1005
998
|
"Role": {
|
|
@@ -1007,7 +1000,7 @@
|
|
|
1007
1000
|
"path": "cfts3-custom-originPath/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
|
|
1008
1001
|
"constructInfo": {
|
|
1009
1002
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
1010
|
-
"version": "2.
|
|
1003
|
+
"version": "2.143.0"
|
|
1011
1004
|
}
|
|
1012
1005
|
},
|
|
1013
1006
|
"Handler": {
|
|
@@ -1015,13 +1008,13 @@
|
|
|
1015
1008
|
"path": "cfts3-custom-originPath/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
|
|
1016
1009
|
"constructInfo": {
|
|
1017
1010
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
1018
|
-
"version": "2.
|
|
1011
|
+
"version": "2.143.0"
|
|
1019
1012
|
}
|
|
1020
1013
|
}
|
|
1021
1014
|
},
|
|
1022
1015
|
"constructInfo": {
|
|
1023
1016
|
"fqn": "aws-cdk-lib.CustomResourceProviderBase",
|
|
1024
|
-
"version": "2.
|
|
1017
|
+
"version": "2.143.0"
|
|
1025
1018
|
}
|
|
1026
1019
|
},
|
|
1027
1020
|
"Integ": {
|
|
@@ -1037,7 +1030,7 @@
|
|
|
1037
1030
|
"path": "cfts3-custom-originPath/Integ/DefaultTest/Default",
|
|
1038
1031
|
"constructInfo": {
|
|
1039
1032
|
"fqn": "constructs.Construct",
|
|
1040
|
-
"version": "10.
|
|
1033
|
+
"version": "10.3.0"
|
|
1041
1034
|
}
|
|
1042
1035
|
},
|
|
1043
1036
|
"DeployAssert": {
|
|
@@ -1049,7 +1042,7 @@
|
|
|
1049
1042
|
"path": "cfts3-custom-originPath/Integ/DefaultTest/DeployAssert/BootstrapVersion",
|
|
1050
1043
|
"constructInfo": {
|
|
1051
1044
|
"fqn": "aws-cdk-lib.CfnParameter",
|
|
1052
|
-
"version": "2.
|
|
1045
|
+
"version": "2.143.0"
|
|
1053
1046
|
}
|
|
1054
1047
|
},
|
|
1055
1048
|
"CheckBootstrapVersion": {
|
|
@@ -1057,25 +1050,25 @@
|
|
|
1057
1050
|
"path": "cfts3-custom-originPath/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
|
|
1058
1051
|
"constructInfo": {
|
|
1059
1052
|
"fqn": "aws-cdk-lib.CfnRule",
|
|
1060
|
-
"version": "2.
|
|
1053
|
+
"version": "2.143.0"
|
|
1061
1054
|
}
|
|
1062
1055
|
}
|
|
1063
1056
|
},
|
|
1064
1057
|
"constructInfo": {
|
|
1065
1058
|
"fqn": "aws-cdk-lib.Stack",
|
|
1066
|
-
"version": "2.
|
|
1059
|
+
"version": "2.143.0"
|
|
1067
1060
|
}
|
|
1068
1061
|
}
|
|
1069
1062
|
},
|
|
1070
1063
|
"constructInfo": {
|
|
1071
1064
|
"fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
|
|
1072
|
-
"version": "2.
|
|
1065
|
+
"version": "2.143.0-alpha.0"
|
|
1073
1066
|
}
|
|
1074
1067
|
}
|
|
1075
1068
|
},
|
|
1076
1069
|
"constructInfo": {
|
|
1077
1070
|
"fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
|
|
1078
|
-
"version": "2.
|
|
1071
|
+
"version": "2.143.0-alpha.0"
|
|
1079
1072
|
}
|
|
1080
1073
|
},
|
|
1081
1074
|
"BootstrapVersion": {
|
|
@@ -1083,7 +1076,7 @@
|
|
|
1083
1076
|
"path": "cfts3-custom-originPath/BootstrapVersion",
|
|
1084
1077
|
"constructInfo": {
|
|
1085
1078
|
"fqn": "aws-cdk-lib.CfnParameter",
|
|
1086
|
-
"version": "2.
|
|
1079
|
+
"version": "2.143.0"
|
|
1087
1080
|
}
|
|
1088
1081
|
},
|
|
1089
1082
|
"CheckBootstrapVersion": {
|
|
@@ -1091,13 +1084,13 @@
|
|
|
1091
1084
|
"path": "cfts3-custom-originPath/CheckBootstrapVersion",
|
|
1092
1085
|
"constructInfo": {
|
|
1093
1086
|
"fqn": "aws-cdk-lib.CfnRule",
|
|
1094
|
-
"version": "2.
|
|
1087
|
+
"version": "2.143.0"
|
|
1095
1088
|
}
|
|
1096
1089
|
}
|
|
1097
1090
|
},
|
|
1098
1091
|
"constructInfo": {
|
|
1099
1092
|
"fqn": "aws-cdk-lib.Stack",
|
|
1100
|
-
"version": "2.
|
|
1093
|
+
"version": "2.143.0"
|
|
1101
1094
|
}
|
|
1102
1095
|
},
|
|
1103
1096
|
"Tree": {
|
|
@@ -1105,13 +1098,13 @@
|
|
|
1105
1098
|
"path": "Tree",
|
|
1106
1099
|
"constructInfo": {
|
|
1107
1100
|
"fqn": "constructs.Construct",
|
|
1108
|
-
"version": "10.
|
|
1101
|
+
"version": "10.3.0"
|
|
1109
1102
|
}
|
|
1110
1103
|
}
|
|
1111
1104
|
},
|
|
1112
1105
|
"constructInfo": {
|
|
1113
1106
|
"fqn": "aws-cdk-lib.App",
|
|
1114
|
-
"version": "2.
|
|
1107
|
+
"version": "2.143.0"
|
|
1115
1108
|
}
|
|
1116
1109
|
}
|
|
1117
1110
|
}
|
|
@@ -52,10 +52,14 @@ new lib_1.CloudFrontToS3(stack, 'test-cloudfront-s3', {
|
|
|
52
52
|
transitionAfter: aws_cdk_lib_1.Duration.days(7)
|
|
53
53
|
}]
|
|
54
54
|
}]
|
|
55
|
-
}
|
|
55
|
+
},
|
|
56
|
+
cloudFrontLoggingBucketAccessLogBucketProps: {
|
|
57
|
+
removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY,
|
|
58
|
+
autoDeleteObjects: true
|
|
59
|
+
},
|
|
56
60
|
});
|
|
57
61
|
core_1.suppressCustomHandlerCfnNagWarnings(stack, 'Custom::S3AutoDeleteObjectsCustomResourceProvider');
|
|
58
62
|
new integ_tests_alpha_1.IntegTest(stack, 'Integ', { testCases: [
|
|
59
63
|
stack
|
|
60
64
|
] });
|
|
61
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuY2Z0czMtY3VzdG9tTG9nZ2luZ0J1Y2tldHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5jZnRzMy1jdXN0b21Mb2dnaW5nQnVja2V0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7O0dBV0c7O0FBRUgsZ0JBQWdCO0FBQ2hCLDZDQUFrRTtBQUNsRSxnQ0FBd0M7QUFDeEMseURBQTZHO0FBQzdHLHlDQUF5QztBQUN6Q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BzOiB7XG4gICAgcmVtb3ZhbFBvbGljeTogUmVtb3ZhbFBvbGljeS5ERVNUUk9ZLFxuICAgIGF1dG9EZWxldGVPYmplY3RzOiB0cnVlXG4gIH0sXG59KTtcbnN1cHByZXNzQ3VzdG9tSGFuZGxlckNmbk5hZ1dhcm5pbmdzKHN0YWNrLCAnQ3VzdG9tOjpTM0F1dG9EZWxldGVPYmplY3RzQ3VzdG9tUmVzb3VyY2VQcm92aWRlcicpO1xubmV3IEludGVnVGVzdChzdGFjaywgJ0ludGVnJywgeyB0ZXN0Q2FzZXM6IFtcbiAgc3RhY2tcbl0gfSk7XG4iXX0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var I=Object.create,i=Object.defineProperty,C=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,P=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,B=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},d=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of w(t))!A.call(e,s)&&s!==o&&i(e,s,{get:()=>t[s],enumerable:!(r=C(t,s))||r.enumerable});return e},l=(e,t,o)=>(o=e!=null?I(P(e)):{},d(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e)),L=e=>d(i({},"__esModule",{value:!0}),e),q={};B(q,{autoDeleteHandler:()=>S,handler:()=>F}),module.exports=L(q);var h=require("@aws-sdk/client-s3"),y=l(require("https")),m=l(require("url")),a={sendHttpRequest:T,log:O,includeStackTraces:!0,userHandlerIndex:"./index"},p="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",k="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";function R(e){return async(t,o)=>{let r={...t,ResponseURL:"..."};if(a.log(JSON.stringify(r,void 0,2)),t.RequestType==="Delete"&&t.PhysicalResourceId===p){a.log("ignoring DELETE event caused by a failed CREATE event"),await u("SUCCESS",t);return}try{let s=await e(r,o),n=D(t,s);await u("SUCCESS",n)}catch(s){let n={...t,Reason:a.includeStackTraces?s.stack:s.message};n.PhysicalResourceId||(t.RequestType==="Create"?(a.log("CREATE failed, responding with a marker physical resource id so that the subsequent DELETE will be ignored"),n.PhysicalResourceId=p):a.log(`ERROR: Malformed event. "PhysicalResourceId" is required: ${JSON.stringify(t)}`)),await u("FAILED",n)}}}function D(e,t={}){let o=t.PhysicalResourceId??e.PhysicalResourceId??e.RequestId;if(e.RequestType==="Delete"&&o!==e.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${e.PhysicalResourceId}" to "${t.PhysicalResourceId}" during deletion`);return{...e,...t,PhysicalResourceId:o}}async function u(e,t){let o={Status:e,Reason:t.Reason??e,StackId:t.StackId,RequestId:t.RequestId,PhysicalResourceId:t.PhysicalResourceId||k,LogicalResourceId:t.LogicalResourceId,NoEcho:t.NoEcho,Data:t.Data},r=m.parse(t.ResponseURL),s=`${r.protocol}//${r.hostname}/${r.pathname}?***`;a.log("submit response to cloudformation",s,o);let n=JSON.stringify(o),f={hostname:r.hostname,path:r.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(n,"utf8")}};await b({attempts:5,sleep:1e3},a.sendHttpRequest)(f,n)}async function T(e,t){return new Promise((o,r)=>{try{let s=y.request(e,n=>{n.resume(),!n.statusCode||n.statusCode>=400?r(new Error(`Unsuccessful HTTP response: ${n.statusCode}`)):o()});s.on("error",r),s.write(t),s.end()}catch(s){r(s)}})}function O(e,...t){console.log(e,...t)}function b(e,t){return async(...o)=>{let r=e.attempts,s=e.sleep;for(;;)try{return await t(...o)}catch(n){if(r--<=0)throw n;await x(Math.floor(Math.random()*s)),s*=2}}}async function x(e){return new Promise(t=>setTimeout(t,e))}var g="aws-cdk:auto-delete-objects",H=JSON.stringify({Version:"2012-10-17",Statement:[]}),c=new h.S3({}),F=R(S);async function S(e){switch(e.RequestType){case"Create":return;case"Update":return{PhysicalResourceId:(await _(e)).PhysicalResourceId};case"Delete":return W(e.ResourceProperties?.BucketName)}}async function _(e){let t=e,o=t.OldResourceProperties?.BucketName;return{PhysicalResourceId:t.ResourceProperties?.BucketName??o}}async function U(e){try{let t=(await c.getBucketPolicy({Bucket:e}))?.Policy??H,o=JSON.parse(t);o.Statement.push({Principal:"*",Effect:"Deny",Action:["s3:PutObject"],Resource:[`arn:aws:s3:::${e}/*`]}),await c.putBucketPolicy({Bucket:e,Policy:JSON.stringify(o)})}catch(t){if(t.name==="NoSuchBucket")throw t;console.log(`Could not set new object deny policy on bucket '${e}' prior to deletion.`)}}async function E(e){let t=await c.listObjectVersions({Bucket:e}),o=[...t.Versions??[],...t.DeleteMarkers??[]];if(o.length===0)return;let r=o.map(s=>({Key:s.Key,VersionId:s.VersionId}));await c.deleteObjects({Bucket:e,Delete:{Objects:r}}),t?.IsTruncated&&await E(e)}async function W(e){if(!e)throw new Error("No BucketName was provided.");try{if(!await N(e)){console.log(`Bucket does not have '${g}' tag, skipping cleaning.`);return}await U(e),await E(e)}catch(t){if(t.name==="NoSuchBucket"){console.log(`Bucket '${e}' does not exist.`);return}throw t}}async function N(e){return(await c.getBucketTagging({Bucket:e})).TagSet?.some(o=>o.Key===g&&o.Value==="true")}
|
package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.assets.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "36.0.0",
|
|
3
3
|
"files": {
|
|
4
|
-
"
|
|
4
|
+
"2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4": {
|
|
5
5
|
"source": {
|
|
6
|
-
"path": "asset.
|
|
6
|
+
"path": "asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4",
|
|
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": "
|
|
12
|
+
"objectKey": "2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4.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
|
-
"
|
|
17
|
+
"72edeaeb86849ae6e96868136c389997c90e114b4e2b06cd4d656de02019ddfe": {
|
|
18
18
|
"source": {
|
|
19
19
|
"path": "cfts3-customLoggingBuckets.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": "
|
|
25
|
+
"objectKey": "72edeaeb86849ae6e96868136c389997c90e114b4e2b06cd4d656de02019ddfe.json",
|
|
26
26
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.template.json
CHANGED
|
@@ -423,26 +423,6 @@
|
|
|
423
423
|
}
|
|
424
424
|
]
|
|
425
425
|
},
|
|
426
|
-
"LifecycleConfiguration": {
|
|
427
|
-
"Rules": [
|
|
428
|
-
{
|
|
429
|
-
"Status": "Enabled",
|
|
430
|
-
"Transitions": [
|
|
431
|
-
{
|
|
432
|
-
"StorageClass": "GLACIER",
|
|
433
|
-
"TransitionInDays": 7
|
|
434
|
-
}
|
|
435
|
-
]
|
|
436
|
-
}
|
|
437
|
-
]
|
|
438
|
-
},
|
|
439
|
-
"OwnershipControls": {
|
|
440
|
-
"Rules": [
|
|
441
|
-
{
|
|
442
|
-
"ObjectOwnership": "ObjectWriter"
|
|
443
|
-
}
|
|
444
|
-
]
|
|
445
|
-
},
|
|
446
426
|
"PublicAccessBlockConfiguration": {
|
|
447
427
|
"BlockPublicAcls": true,
|
|
448
428
|
"BlockPublicPolicy": true,
|
|
@@ -902,7 +882,7 @@
|
|
|
902
882
|
"S3Bucket": {
|
|
903
883
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
904
884
|
},
|
|
905
|
-
"S3Key": "
|
|
885
|
+
"S3Key": "2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4.zip"
|
|
906
886
|
},
|
|
907
887
|
"Timeout": 900,
|
|
908
888
|
"MemorySize": 128,
|
|
@@ -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}/72edeaeb86849ae6e96868136c389997c90e114b4e2b06cd4d656de02019ddfe.json",
|
|
70
70
|
"requiresBootstrapStackVersion": 6,
|
|
71
71
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
72
|
"additionalDependencies": [
|