@aws-solutions-constructs/aws-cloudfront-s3 2.60.0 → 2.61.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 +20 -7
- package/lib/index.js +1 -1
- package/package.json +8 -8
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/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 +5 -5
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.template.json +134 -4
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/manifest.json +7 -1
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/tree.json +91 -70
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/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 +5 -5
- 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 +119 -2
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/manifest.json +7 -1
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/tree.json +49 -41
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.assets.json +5 -5
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.template.json +134 -4
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/manifest.json +7 -1
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/tree.json +89 -68
- package/test/integ.cfts3-custom-headers.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/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 +119 -2
- package/test/integ.cfts3-custom-headers.js.snapshot/manifest.json +7 -1
- package/test/integ.cfts3-custom-headers.js.snapshot/tree.json +53 -45
- package/test/integ.cfts3-custom-originPath.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/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 +119 -2
- package/test/integ.cfts3-custom-originPath.js.snapshot/manifest.json +7 -1
- package/test/integ.cfts3-custom-originPath.js.snapshot/tree.json +51 -43
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/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 +119 -2
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/manifest.json +7 -1
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/tree.json +51 -43
- package/test/integ.cfts3-existing-bucket.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/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 +119 -2
- package/test/integ.cfts3-existing-bucket.js.snapshot/manifest.json +7 -1
- package/test/integ.cfts3-existing-bucket.js.snapshot/tree.json +55 -47
- package/test/integ.cfts3-no-arguments.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/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 +119 -2
- package/test/integ.cfts3-no-arguments.js.snapshot/manifest.json +7 -1
- package/test/integ.cfts3-no-arguments.js.snapshot/tree.json +51 -43
- package/test/integ.cfts3-no-logging.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
- package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.assets.json +5 -5
- package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.template.json +119 -2
- package/test/integ.cfts3-no-logging.js.snapshot/manifest.json +7 -1
- package/test/integ.cfts3-no-logging.js.snapshot/tree.json +33 -25
- package/test/integ.cfts3-no-security-headers.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/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 +119 -2
- package/test/integ.cfts3-no-security-headers.js.snapshot/manifest.json +7 -1
- package/test/integ.cfts3-no-security-headers.js.snapshot/tree.json +49 -41
- package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
- package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
- package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
- package/test/integ.cfts3-custom-headers.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
- package/test/integ.cfts3-custom-originPath.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
- package/test/integ.cfts3-customLoggingBuckets.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
- package/test/integ.cfts3-existing-bucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
- package/test/integ.cfts3-no-arguments.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
- package/test/integ.cfts3-no-logging.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
- package/test/integ.cfts3-no-security-headers.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
|
@@ -867,7 +867,7 @@
|
|
|
867
867
|
"S3Bucket": {
|
|
868
868
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
869
869
|
},
|
|
870
|
-
"S3Key": "
|
|
870
|
+
"S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip"
|
|
871
871
|
},
|
|
872
872
|
"Timeout": 900,
|
|
873
873
|
"MemorySize": 128,
|
|
@@ -878,7 +878,15 @@
|
|
|
878
878
|
"Arn"
|
|
879
879
|
]
|
|
880
880
|
},
|
|
881
|
-
"Runtime":
|
|
881
|
+
"Runtime": {
|
|
882
|
+
"Fn::FindInMap": [
|
|
883
|
+
"LatestNodeRuntimeMap",
|
|
884
|
+
{
|
|
885
|
+
"Ref": "AWS::Region"
|
|
886
|
+
},
|
|
887
|
+
"value"
|
|
888
|
+
]
|
|
889
|
+
},
|
|
882
890
|
"Description": {
|
|
883
891
|
"Fn::Join": [
|
|
884
892
|
"",
|
|
@@ -915,6 +923,115 @@
|
|
|
915
923
|
}
|
|
916
924
|
}
|
|
917
925
|
},
|
|
926
|
+
"Mappings": {
|
|
927
|
+
"LatestNodeRuntimeMap": {
|
|
928
|
+
"af-south-1": {
|
|
929
|
+
"value": "nodejs20.x"
|
|
930
|
+
},
|
|
931
|
+
"ap-east-1": {
|
|
932
|
+
"value": "nodejs20.x"
|
|
933
|
+
},
|
|
934
|
+
"ap-northeast-1": {
|
|
935
|
+
"value": "nodejs20.x"
|
|
936
|
+
},
|
|
937
|
+
"ap-northeast-2": {
|
|
938
|
+
"value": "nodejs20.x"
|
|
939
|
+
},
|
|
940
|
+
"ap-northeast-3": {
|
|
941
|
+
"value": "nodejs20.x"
|
|
942
|
+
},
|
|
943
|
+
"ap-south-1": {
|
|
944
|
+
"value": "nodejs20.x"
|
|
945
|
+
},
|
|
946
|
+
"ap-south-2": {
|
|
947
|
+
"value": "nodejs20.x"
|
|
948
|
+
},
|
|
949
|
+
"ap-southeast-1": {
|
|
950
|
+
"value": "nodejs20.x"
|
|
951
|
+
},
|
|
952
|
+
"ap-southeast-2": {
|
|
953
|
+
"value": "nodejs20.x"
|
|
954
|
+
},
|
|
955
|
+
"ap-southeast-3": {
|
|
956
|
+
"value": "nodejs20.x"
|
|
957
|
+
},
|
|
958
|
+
"ap-southeast-4": {
|
|
959
|
+
"value": "nodejs20.x"
|
|
960
|
+
},
|
|
961
|
+
"ca-central-1": {
|
|
962
|
+
"value": "nodejs20.x"
|
|
963
|
+
},
|
|
964
|
+
"cn-north-1": {
|
|
965
|
+
"value": "nodejs18.x"
|
|
966
|
+
},
|
|
967
|
+
"cn-northwest-1": {
|
|
968
|
+
"value": "nodejs18.x"
|
|
969
|
+
},
|
|
970
|
+
"eu-central-1": {
|
|
971
|
+
"value": "nodejs20.x"
|
|
972
|
+
},
|
|
973
|
+
"eu-central-2": {
|
|
974
|
+
"value": "nodejs20.x"
|
|
975
|
+
},
|
|
976
|
+
"eu-north-1": {
|
|
977
|
+
"value": "nodejs20.x"
|
|
978
|
+
},
|
|
979
|
+
"eu-south-1": {
|
|
980
|
+
"value": "nodejs20.x"
|
|
981
|
+
},
|
|
982
|
+
"eu-south-2": {
|
|
983
|
+
"value": "nodejs20.x"
|
|
984
|
+
},
|
|
985
|
+
"eu-west-1": {
|
|
986
|
+
"value": "nodejs20.x"
|
|
987
|
+
},
|
|
988
|
+
"eu-west-2": {
|
|
989
|
+
"value": "nodejs20.x"
|
|
990
|
+
},
|
|
991
|
+
"eu-west-3": {
|
|
992
|
+
"value": "nodejs20.x"
|
|
993
|
+
},
|
|
994
|
+
"il-central-1": {
|
|
995
|
+
"value": "nodejs20.x"
|
|
996
|
+
},
|
|
997
|
+
"me-central-1": {
|
|
998
|
+
"value": "nodejs20.x"
|
|
999
|
+
},
|
|
1000
|
+
"me-south-1": {
|
|
1001
|
+
"value": "nodejs20.x"
|
|
1002
|
+
},
|
|
1003
|
+
"sa-east-1": {
|
|
1004
|
+
"value": "nodejs20.x"
|
|
1005
|
+
},
|
|
1006
|
+
"us-east-1": {
|
|
1007
|
+
"value": "nodejs20.x"
|
|
1008
|
+
},
|
|
1009
|
+
"us-east-2": {
|
|
1010
|
+
"value": "nodejs20.x"
|
|
1011
|
+
},
|
|
1012
|
+
"us-gov-east-1": {
|
|
1013
|
+
"value": "nodejs18.x"
|
|
1014
|
+
},
|
|
1015
|
+
"us-gov-west-1": {
|
|
1016
|
+
"value": "nodejs18.x"
|
|
1017
|
+
},
|
|
1018
|
+
"us-iso-east-1": {
|
|
1019
|
+
"value": "nodejs18.x"
|
|
1020
|
+
},
|
|
1021
|
+
"us-iso-west-1": {
|
|
1022
|
+
"value": "nodejs18.x"
|
|
1023
|
+
},
|
|
1024
|
+
"us-isob-east-1": {
|
|
1025
|
+
"value": "nodejs18.x"
|
|
1026
|
+
},
|
|
1027
|
+
"us-west-1": {
|
|
1028
|
+
"value": "nodejs20.x"
|
|
1029
|
+
},
|
|
1030
|
+
"us-west-2": {
|
|
1031
|
+
"value": "nodejs20.x"
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
918
1035
|
"Parameters": {
|
|
919
1036
|
"BootstrapVersion": {
|
|
920
1037
|
"Type": "AWS::SSM::Parameter::Value<String>",
|
|
@@ -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}/8b921451ffafbc41e8d2ba51a3407ad7694217e500ed5032c7f1f14b7c89a329.json",
|
|
70
70
|
"requiresBootstrapStackVersion": 6,
|
|
71
71
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
72
|
"additionalDependencies": [
|
|
@@ -172,6 +172,12 @@
|
|
|
172
172
|
"data": "testcloudfronts3CloudFrontDistribution0565DEE8"
|
|
173
173
|
}
|
|
174
174
|
],
|
|
175
|
+
"/cfts3-no-arguments/LatestNodeRuntimeMap": [
|
|
176
|
+
{
|
|
177
|
+
"type": "aws:cdk:logicalId",
|
|
178
|
+
"data": "LatestNodeRuntimeMap"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
175
181
|
"/cfts3-no-arguments/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role": [
|
|
176
182
|
{
|
|
177
183
|
"type": "aws:cdk:logicalId",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"constructInfo": {
|
|
52
52
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
53
|
-
"version": "2.
|
|
53
|
+
"version": "2.147.3"
|
|
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.147.3"
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
"constructInfo": {
|
|
192
192
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
193
|
-
"version": "2.
|
|
193
|
+
"version": "2.147.3"
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
196
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -202,19 +202,19 @@
|
|
|
202
202
|
"path": "cfts3-no-arguments/test-cloudfront-s3/S3LoggingBucket/AutoDeleteObjectsCustomResource/Default",
|
|
203
203
|
"constructInfo": {
|
|
204
204
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
205
|
-
"version": "2.
|
|
205
|
+
"version": "2.147.3"
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
"constructInfo": {
|
|
210
210
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
211
|
-
"version": "2.
|
|
211
|
+
"version": "2.147.3"
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
"constructInfo": {
|
|
216
216
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
217
|
-
"version": "2.
|
|
217
|
+
"version": "2.147.3"
|
|
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.147.3"
|
|
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.147.3"
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
"constructInfo": {
|
|
419
419
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
420
|
-
"version": "2.
|
|
420
|
+
"version": "2.147.3"
|
|
421
421
|
}
|
|
422
422
|
},
|
|
423
423
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -429,19 +429,19 @@
|
|
|
429
429
|
"path": "cfts3-no-arguments/test-cloudfront-s3/S3Bucket/AutoDeleteObjectsCustomResource/Default",
|
|
430
430
|
"constructInfo": {
|
|
431
431
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
432
|
-
"version": "2.
|
|
432
|
+
"version": "2.147.3"
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
},
|
|
436
436
|
"constructInfo": {
|
|
437
437
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
438
|
-
"version": "2.
|
|
438
|
+
"version": "2.147.3"
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
442
|
"constructInfo": {
|
|
443
443
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
444
|
-
"version": "2.
|
|
444
|
+
"version": "2.147.3"
|
|
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.147.3"
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
},
|
|
472
472
|
"constructInfo": {
|
|
473
473
|
"fqn": "aws-cdk-lib.aws_cloudfront.Function",
|
|
474
|
-
"version": "2.
|
|
474
|
+
"version": "2.147.3"
|
|
475
475
|
}
|
|
476
476
|
},
|
|
477
477
|
"CloudfrontLoggingBucketAccessLog": {
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
},
|
|
513
513
|
"constructInfo": {
|
|
514
514
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
515
|
-
"version": "2.
|
|
515
|
+
"version": "2.147.3"
|
|
516
516
|
}
|
|
517
517
|
},
|
|
518
518
|
"Policy": {
|
|
@@ -646,13 +646,13 @@
|
|
|
646
646
|
},
|
|
647
647
|
"constructInfo": {
|
|
648
648
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
|
|
649
|
-
"version": "2.
|
|
649
|
+
"version": "2.147.3"
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
},
|
|
653
653
|
"constructInfo": {
|
|
654
654
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
655
|
-
"version": "2.
|
|
655
|
+
"version": "2.147.3"
|
|
656
656
|
}
|
|
657
657
|
},
|
|
658
658
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -664,19 +664,19 @@
|
|
|
664
664
|
"path": "cfts3-no-arguments/test-cloudfront-s3/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource/Default",
|
|
665
665
|
"constructInfo": {
|
|
666
666
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
667
|
-
"version": "2.
|
|
667
|
+
"version": "2.147.3"
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
},
|
|
671
671
|
"constructInfo": {
|
|
672
672
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
673
|
-
"version": "2.
|
|
673
|
+
"version": "2.147.3"
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
},
|
|
677
677
|
"constructInfo": {
|
|
678
678
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
679
|
-
"version": "2.
|
|
679
|
+
"version": "2.147.3"
|
|
680
680
|
}
|
|
681
681
|
},
|
|
682
682
|
"CloudfrontLoggingBucket": {
|
|
@@ -729,7 +729,7 @@
|
|
|
729
729
|
},
|
|
730
730
|
"constructInfo": {
|
|
731
731
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucket",
|
|
732
|
-
"version": "2.
|
|
732
|
+
"version": "2.147.3"
|
|
733
733
|
}
|
|
734
734
|
},
|
|
735
735
|
"Policy": {
|
|
@@ -827,13 +827,13 @@
|
|
|
827
827
|
},
|
|
828
828
|
"constructInfo": {
|
|
829
829
|
"fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
|
|
830
|
-
"version": "2.
|
|
830
|
+
"version": "2.147.3"
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
},
|
|
834
834
|
"constructInfo": {
|
|
835
835
|
"fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
|
|
836
|
-
"version": "2.
|
|
836
|
+
"version": "2.147.3"
|
|
837
837
|
}
|
|
838
838
|
},
|
|
839
839
|
"AutoDeleteObjectsCustomResource": {
|
|
@@ -845,19 +845,19 @@
|
|
|
845
845
|
"path": "cfts3-no-arguments/test-cloudfront-s3/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource/Default",
|
|
846
846
|
"constructInfo": {
|
|
847
847
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
848
|
-
"version": "2.
|
|
848
|
+
"version": "2.147.3"
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
},
|
|
852
852
|
"constructInfo": {
|
|
853
853
|
"fqn": "aws-cdk-lib.CustomResource",
|
|
854
|
-
"version": "2.
|
|
854
|
+
"version": "2.147.3"
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
857
|
},
|
|
858
858
|
"constructInfo": {
|
|
859
859
|
"fqn": "aws-cdk-lib.aws_s3.Bucket",
|
|
860
|
-
"version": "2.
|
|
860
|
+
"version": "2.147.3"
|
|
861
861
|
}
|
|
862
862
|
},
|
|
863
863
|
"CloudFrontOac": {
|
|
@@ -897,7 +897,7 @@
|
|
|
897
897
|
},
|
|
898
898
|
"constructInfo": {
|
|
899
899
|
"fqn": "aws-cdk-lib.aws_cloudfront.CfnOriginAccessControl",
|
|
900
|
-
"version": "2.
|
|
900
|
+
"version": "2.147.3"
|
|
901
901
|
}
|
|
902
902
|
},
|
|
903
903
|
"CloudFrontDistribution": {
|
|
@@ -968,19 +968,27 @@
|
|
|
968
968
|
},
|
|
969
969
|
"constructInfo": {
|
|
970
970
|
"fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
|
|
971
|
-
"version": "2.
|
|
971
|
+
"version": "2.147.3"
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
974
|
},
|
|
975
975
|
"constructInfo": {
|
|
976
976
|
"fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
|
|
977
|
-
"version": "2.
|
|
977
|
+
"version": "2.147.3"
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
980
|
},
|
|
981
981
|
"constructInfo": {
|
|
982
982
|
"fqn": "@aws-solutions-constructs/aws-cloudfront-s3.CloudFrontToS3",
|
|
983
|
-
"version": "2.
|
|
983
|
+
"version": "2.60.0"
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
"LatestNodeRuntimeMap": {
|
|
987
|
+
"id": "LatestNodeRuntimeMap",
|
|
988
|
+
"path": "cfts3-no-arguments/LatestNodeRuntimeMap",
|
|
989
|
+
"constructInfo": {
|
|
990
|
+
"fqn": "aws-cdk-lib.CfnMapping",
|
|
991
|
+
"version": "2.147.3"
|
|
984
992
|
}
|
|
985
993
|
},
|
|
986
994
|
"Custom::S3AutoDeleteObjectsCustomResourceProvider": {
|
|
@@ -992,7 +1000,7 @@
|
|
|
992
1000
|
"path": "cfts3-no-arguments/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
|
|
993
1001
|
"constructInfo": {
|
|
994
1002
|
"fqn": "aws-cdk-lib.AssetStaging",
|
|
995
|
-
"version": "2.
|
|
1003
|
+
"version": "2.147.3"
|
|
996
1004
|
}
|
|
997
1005
|
},
|
|
998
1006
|
"Role": {
|
|
@@ -1000,7 +1008,7 @@
|
|
|
1000
1008
|
"path": "cfts3-no-arguments/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
|
|
1001
1009
|
"constructInfo": {
|
|
1002
1010
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
1003
|
-
"version": "2.
|
|
1011
|
+
"version": "2.147.3"
|
|
1004
1012
|
}
|
|
1005
1013
|
},
|
|
1006
1014
|
"Handler": {
|
|
@@ -1008,13 +1016,13 @@
|
|
|
1008
1016
|
"path": "cfts3-no-arguments/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
|
|
1009
1017
|
"constructInfo": {
|
|
1010
1018
|
"fqn": "aws-cdk-lib.CfnResource",
|
|
1011
|
-
"version": "2.
|
|
1019
|
+
"version": "2.147.3"
|
|
1012
1020
|
}
|
|
1013
1021
|
}
|
|
1014
1022
|
},
|
|
1015
1023
|
"constructInfo": {
|
|
1016
1024
|
"fqn": "aws-cdk-lib.CustomResourceProviderBase",
|
|
1017
|
-
"version": "2.
|
|
1025
|
+
"version": "2.147.3"
|
|
1018
1026
|
}
|
|
1019
1027
|
},
|
|
1020
1028
|
"Integ": {
|
|
@@ -1042,7 +1050,7 @@
|
|
|
1042
1050
|
"path": "cfts3-no-arguments/Integ/DefaultTest/DeployAssert/BootstrapVersion",
|
|
1043
1051
|
"constructInfo": {
|
|
1044
1052
|
"fqn": "aws-cdk-lib.CfnParameter",
|
|
1045
|
-
"version": "2.
|
|
1053
|
+
"version": "2.147.3"
|
|
1046
1054
|
}
|
|
1047
1055
|
},
|
|
1048
1056
|
"CheckBootstrapVersion": {
|
|
@@ -1050,25 +1058,25 @@
|
|
|
1050
1058
|
"path": "cfts3-no-arguments/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
|
|
1051
1059
|
"constructInfo": {
|
|
1052
1060
|
"fqn": "aws-cdk-lib.CfnRule",
|
|
1053
|
-
"version": "2.
|
|
1061
|
+
"version": "2.147.3"
|
|
1054
1062
|
}
|
|
1055
1063
|
}
|
|
1056
1064
|
},
|
|
1057
1065
|
"constructInfo": {
|
|
1058
1066
|
"fqn": "aws-cdk-lib.Stack",
|
|
1059
|
-
"version": "2.
|
|
1067
|
+
"version": "2.147.3"
|
|
1060
1068
|
}
|
|
1061
1069
|
}
|
|
1062
1070
|
},
|
|
1063
1071
|
"constructInfo": {
|
|
1064
1072
|
"fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
|
|
1065
|
-
"version": "2.
|
|
1073
|
+
"version": "2.147.3-alpha.0"
|
|
1066
1074
|
}
|
|
1067
1075
|
}
|
|
1068
1076
|
},
|
|
1069
1077
|
"constructInfo": {
|
|
1070
1078
|
"fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
|
|
1071
|
-
"version": "2.
|
|
1079
|
+
"version": "2.147.3-alpha.0"
|
|
1072
1080
|
}
|
|
1073
1081
|
},
|
|
1074
1082
|
"BootstrapVersion": {
|
|
@@ -1076,7 +1084,7 @@
|
|
|
1076
1084
|
"path": "cfts3-no-arguments/BootstrapVersion",
|
|
1077
1085
|
"constructInfo": {
|
|
1078
1086
|
"fqn": "aws-cdk-lib.CfnParameter",
|
|
1079
|
-
"version": "2.
|
|
1087
|
+
"version": "2.147.3"
|
|
1080
1088
|
}
|
|
1081
1089
|
},
|
|
1082
1090
|
"CheckBootstrapVersion": {
|
|
@@ -1084,13 +1092,13 @@
|
|
|
1084
1092
|
"path": "cfts3-no-arguments/CheckBootstrapVersion",
|
|
1085
1093
|
"constructInfo": {
|
|
1086
1094
|
"fqn": "aws-cdk-lib.CfnRule",
|
|
1087
|
-
"version": "2.
|
|
1095
|
+
"version": "2.147.3"
|
|
1088
1096
|
}
|
|
1089
1097
|
}
|
|
1090
1098
|
},
|
|
1091
1099
|
"constructInfo": {
|
|
1092
1100
|
"fqn": "aws-cdk-lib.Stack",
|
|
1093
|
-
"version": "2.
|
|
1101
|
+
"version": "2.147.3"
|
|
1094
1102
|
}
|
|
1095
1103
|
},
|
|
1096
1104
|
"Tree": {
|
|
@@ -1104,7 +1112,7 @@
|
|
|
1104
1112
|
},
|
|
1105
1113
|
"constructInfo": {
|
|
1106
1114
|
"fqn": "aws-cdk-lib.App",
|
|
1107
|
-
"version": "2.
|
|
1115
|
+
"version": "2.147.3"
|
|
1108
1116
|
}
|
|
1109
1117
|
}
|
|
1110
1118
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var f=Object.create,i=Object.defineProperty,I=Object.getOwnPropertyDescriptor,C=Object.getOwnPropertyNames,w=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,A=(t,e)=>{for(var o in e)i(t,o,{get:e[o],enumerable:!0})},d=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of C(e))!P.call(t,s)&&s!==o&&i(t,s,{get:()=>e[s],enumerable:!(r=I(e,s))||r.enumerable});return t},l=(t,e,o)=>(o=t!=null?f(w(t)):{},d(e||!t||!t.__esModule?i(o,"default",{value:t,enumerable:!0}):o,t)),B=t=>d(i({},"__esModule",{value:!0}),t),q={};A(q,{autoDeleteHandler:()=>S,handler:()=>H}),module.exports=B(q);var h=require("@aws-sdk/client-s3"),y=l(require("https")),m=l(require("url")),a={sendHttpRequest:D,log:T,includeStackTraces:!0,userHandlerIndex:"./index"},p="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",L="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";function R(t){return async(e,o)=>{let r={...e,ResponseURL:"..."};if(a.log(JSON.stringify(r,void 0,2)),e.RequestType==="Delete"&&e.PhysicalResourceId===p){a.log("ignoring DELETE event caused by a failed CREATE event"),await u("SUCCESS",e);return}try{let s=await t(r,o),n=k(e,s);await u("SUCCESS",n)}catch(s){let n={...e,Reason:a.includeStackTraces?s.stack:s.message};n.PhysicalResourceId||(e.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(e)}`)),await u("FAILED",n)}}}function k(t,e={}){let o=e.PhysicalResourceId??t.PhysicalResourceId??t.RequestId;if(t.RequestType==="Delete"&&o!==t.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${t.PhysicalResourceId}" to "${e.PhysicalResourceId}" during deletion`);return{...t,...e,PhysicalResourceId:o}}async function u(t,e){let o={Status:t,Reason:e.Reason??t,StackId:e.StackId,RequestId:e.RequestId,PhysicalResourceId:e.PhysicalResourceId||L,LogicalResourceId:e.LogicalResourceId,NoEcho:e.NoEcho,Data:e.Data},r=m.parse(e.ResponseURL),s=`${r.protocol}//${r.hostname}/${r.pathname}?***`;a.log("submit response to cloudformation",s,o);let n=JSON.stringify(o),E={hostname:r.hostname,path:r.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(n,"utf8")}};await O({attempts:5,sleep:1e3},a.sendHttpRequest)(E,n)}async function D(t,e){return new Promise((o,r)=>{try{let s=y.request(t,n=>{n.resume(),!n.statusCode||n.statusCode>=400?r(new Error(`Unsuccessful HTTP response: ${n.statusCode}`)):o()});s.on("error",r),s.write(e),s.end()}catch(s){r(s)}})}function T(t,...e){console.log(t,...e)}function O(t,e){return async(...o)=>{let r=t.attempts,s=t.sleep;for(;;)try{return await e(...o)}catch(n){if(r--<=0)throw n;await b(Math.floor(Math.random()*s)),s*=2}}}async function b(t){return new Promise(e=>setTimeout(e,t))}var g="aws-cdk:auto-delete-objects",x=JSON.stringify({Version:"2012-10-17",Statement:[]}),c=new h.S3({}),H=R(S);async function S(t){switch(t.RequestType){case"Create":return;case"Update":return{PhysicalResourceId:(await F(t)).PhysicalResourceId};case"Delete":return N(t.ResourceProperties?.BucketName)}}async function F(t){let e=t,o=e.OldResourceProperties?.BucketName;return{PhysicalResourceId:e.ResourceProperties?.BucketName??o}}async function _(t){try{let e=(await c.getBucketPolicy({Bucket:t}))?.Policy??x,o=JSON.parse(e);o.Statement.push({Principal:"*",Effect:"Deny",Action:["s3:PutObject"],Resource:[`arn:aws:s3:::${t}/*`]}),await c.putBucketPolicy({Bucket:t,Policy:JSON.stringify(o)})}catch(e){if(e.name==="NoSuchBucket")throw e;console.log(`Could not set new object deny policy on bucket '${t}' prior to deletion.`)}}async function U(t){let e;do{e=await c.listObjectVersions({Bucket:t});let o=[...e.Versions??[],...e.DeleteMarkers??[]];if(o.length===0)return;let r=o.map(s=>({Key:s.Key,VersionId:s.VersionId}));await c.deleteObjects({Bucket:t,Delete:{Objects:r}})}while(e?.IsTruncated)}async function N(t){if(!t)throw new Error("No BucketName was provided.");try{if(!await W(t)){console.log(`Bucket does not have '${g}' tag, skipping cleaning.`);return}await _(t),await U(t)}catch(e){if(e.name==="NoSuchBucket"){console.log(`Bucket '${t}' does not exist.`);return}throw e}}async function W(t){return(await c.getBucketTagging({Bucket:t})).TagSet?.some(o=>o.Key===g&&o.Value==="true")}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "36.0.0",
|
|
3
3
|
"files": {
|
|
4
|
-
"
|
|
4
|
+
"faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6": {
|
|
5
5
|
"source": {
|
|
6
|
-
"path": "asset.
|
|
6
|
+
"path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6",
|
|
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": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.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
|
+
"1b6403c9ed49e45f98967f4b122d393d13663756a40577955c38ab45ef221211": {
|
|
18
18
|
"source": {
|
|
19
19
|
"path": "cfts3-no-logging.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": "1b6403c9ed49e45f98967f4b122d393d13663756a40577955c38ab45ef221211.json",
|
|
26
26
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
27
27
|
}
|
|
28
28
|
}
|