@aws-solutions-constructs/aws-cloudfront-oai-s3 2.79.0 → 2.79.1
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 +16 -17
- package/README.md +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +3 -2
- package/package.json +5 -5
- package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.assets.json +2 -2
- package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.template.json +4 -4
- package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/manifest.json +12 -3
- package/test/integ.cftoais3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/tree.json +29 -31
- package/test/integ.cftoais3-custom-headers.js.snapshot/cftoais3-custom-headers.assets.json +2 -2
- package/test/integ.cftoais3-custom-headers.js.snapshot/cftoais3-custom-headers.template.json +4 -4
- package/test/integ.cftoais3-custom-headers.js.snapshot/manifest.json +12 -3
- package/test/integ.cftoais3-custom-headers.js.snapshot/tree.json +29 -31
- package/test/integ.cftoais3-custom-originPath.js.snapshot/cftoais3-custom-originPath.assets.json +2 -2
- package/test/integ.cftoais3-custom-originPath.js.snapshot/cftoais3-custom-originPath.template.json +4 -4
- package/test/integ.cftoais3-custom-originPath.js.snapshot/manifest.json +12 -3
- package/test/integ.cftoais3-custom-originPath.js.snapshot/tree.json +29 -31
- package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/cftoais3-customLoggingBuckets.assets.json +2 -2
- package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/cftoais3-customLoggingBuckets.template.json +4 -4
- package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/manifest.json +12 -3
- package/test/integ.cftoais3-customLoggingBuckets.js.snapshot/tree.json +29 -31
- package/test/integ.cftoais3-existing-bucket.js.snapshot/cftoais3-existing-bucket.assets.json +2 -2
- package/test/integ.cftoais3-existing-bucket.js.snapshot/cftoais3-existing-bucket.template.json +5 -5
- package/test/integ.cftoais3-existing-bucket.js.snapshot/manifest.json +12 -3
- package/test/integ.cftoais3-existing-bucket.js.snapshot/tree.json +30 -32
- package/test/integ.cftoais3-no-arguments.js.snapshot/cftoais3-no-arguments.assets.json +2 -2
- package/test/integ.cftoais3-no-arguments.js.snapshot/cftoais3-no-arguments.template.json +4 -4
- package/test/integ.cftoais3-no-arguments.js.snapshot/manifest.json +5 -131
- package/test/integ.cftoais3-no-arguments.js.snapshot/tree.json +29 -31
- package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/cftoais3-no-cloudfront-s3-access-logs.assets.json +2 -2
- package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/cftoais3-no-cloudfront-s3-access-logs.template.json +4 -4
- package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/manifest.json +12 -3
- package/test/integ.cftoais3-no-cloudfront-s3-access-logs.js.snapshot/tree.json +29 -31
- package/test/integ.cftoais3-no-logging.js.snapshot/cftoais3-no-logging.assets.json +2 -2
- package/test/integ.cftoais3-no-logging.js.snapshot/cftoais3-no-logging.template.json +4 -4
- package/test/integ.cftoais3-no-logging.js.snapshot/manifest.json +12 -3
- package/test/integ.cftoais3-no-logging.js.snapshot/tree.json +29 -31
- package/test/integ.cftoais3-no-security-headers.js.snapshot/cftoais3-no-security-headers.assets.json +2 -2
- package/test/integ.cftoais3-no-security-headers.js.snapshot/cftoais3-no-security-headers.template.json +4 -4
- package/test/integ.cftoais3-no-security-headers.js.snapshot/manifest.json +12 -3
- package/test/integ.cftoais3-no-security-headers.js.snapshot/tree.json +29 -31
- package/test/test.cloudfront-oai-s3.test.js +2 -1
package/test/integ.cftoais3-custom-originPath.js.snapshot/cftoais3-custom-originPath.template.json
CHANGED
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
"Principal": {
|
|
320
320
|
"CanonicalUser": {
|
|
321
321
|
"Fn::GetAtt": [
|
|
322
|
-
"
|
|
322
|
+
"testcloudfrontoais3constructsGeneratedOaiA468F478",
|
|
323
323
|
"S3CanonicalUserId"
|
|
324
324
|
]
|
|
325
325
|
}
|
|
@@ -760,11 +760,11 @@
|
|
|
760
760
|
"UpdateReplacePolicy": "Delete",
|
|
761
761
|
"DeletionPolicy": "Delete"
|
|
762
762
|
},
|
|
763
|
-
"
|
|
763
|
+
"testcloudfrontoais3constructsGeneratedOaiA468F478": {
|
|
764
764
|
"Type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
765
765
|
"Properties": {
|
|
766
766
|
"CloudFrontOriginAccessIdentityConfig": {
|
|
767
|
-
"Comment": "
|
|
767
|
+
"Comment": "Allows CloudFront to reach the bucket"
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
},
|
|
@@ -818,7 +818,7 @@
|
|
|
818
818
|
[
|
|
819
819
|
"origin-access-identity/cloudfront/",
|
|
820
820
|
{
|
|
821
|
-
"Ref": "
|
|
821
|
+
"Ref": "testcloudfrontoais3constructsGeneratedOaiA468F478"
|
|
822
822
|
}
|
|
823
823
|
]
|
|
824
824
|
]
|
|
@@ -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}/63bbbdc2abd71238dbf4171ce7c8c584ba44c9719a8500423831a13e4787857f.json",
|
|
70
70
|
"requiresBootstrapStackVersion": 6,
|
|
71
71
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
72
|
"additionalDependencies": [
|
|
@@ -160,10 +160,10 @@
|
|
|
160
160
|
"data": "testcloudfrontoais3CloudfrontLoggingBucketAutoDeleteObjectsCustomResourceE88BD625"
|
|
161
161
|
}
|
|
162
162
|
],
|
|
163
|
-
"/cftoais3-custom-originPath/test-cloudfront-oai-s3/
|
|
163
|
+
"/cftoais3-custom-originPath/test-cloudfront-oai-s3/constructsGeneratedOai/Resource": [
|
|
164
164
|
{
|
|
165
165
|
"type": "aws:cdk:logicalId",
|
|
166
|
-
"data": "
|
|
166
|
+
"data": "testcloudfrontoais3constructsGeneratedOaiA468F478"
|
|
167
167
|
}
|
|
168
168
|
],
|
|
169
169
|
"/cftoais3-custom-originPath/test-cloudfront-oai-s3/CloudFrontDistribution/Resource": [
|
|
@@ -207,6 +207,15 @@
|
|
|
207
207
|
"type": "aws:cdk:logicalId",
|
|
208
208
|
"data": "CheckBootstrapVersion"
|
|
209
209
|
}
|
|
210
|
+
],
|
|
211
|
+
"testcloudfrontoais3CloudFrontDistributionOrigin1S3OriginF57A3CB1": [
|
|
212
|
+
{
|
|
213
|
+
"type": "aws:cdk:logicalId",
|
|
214
|
+
"data": "testcloudfrontoais3CloudFrontDistributionOrigin1S3OriginF57A3CB1",
|
|
215
|
+
"trace": [
|
|
216
|
+
"!!DESTRUCTIVE_CHANGES: WILL_DESTROY"
|
|
217
|
+
]
|
|
218
|
+
}
|
|
210
219
|
]
|
|
211
220
|
},
|
|
212
221
|
"displayName": "cftoais3-custom-originPath"
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"Principal": {
|
|
371
371
|
"CanonicalUser": {
|
|
372
372
|
"Fn::GetAtt": [
|
|
373
|
-
"
|
|
373
|
+
"testcloudfrontoais3constructsGeneratedOaiA468F478",
|
|
374
374
|
"S3CanonicalUserId"
|
|
375
375
|
]
|
|
376
376
|
}
|
|
@@ -890,6 +890,32 @@
|
|
|
890
890
|
"version": "2.177.0"
|
|
891
891
|
}
|
|
892
892
|
},
|
|
893
|
+
"constructsGeneratedOai": {
|
|
894
|
+
"id": "constructsGeneratedOai",
|
|
895
|
+
"path": "cftoais3-custom-originPath/test-cloudfront-oai-s3/constructsGeneratedOai",
|
|
896
|
+
"children": {
|
|
897
|
+
"Resource": {
|
|
898
|
+
"id": "Resource",
|
|
899
|
+
"path": "cftoais3-custom-originPath/test-cloudfront-oai-s3/constructsGeneratedOai/Resource",
|
|
900
|
+
"attributes": {
|
|
901
|
+
"aws:cdk:cloudformation:type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
902
|
+
"aws:cdk:cloudformation:props": {
|
|
903
|
+
"cloudFrontOriginAccessIdentityConfig": {
|
|
904
|
+
"comment": "Allows CloudFront to reach the bucket"
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
"constructInfo": {
|
|
909
|
+
"fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
|
|
910
|
+
"version": "2.177.0"
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
"constructInfo": {
|
|
915
|
+
"fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
|
|
916
|
+
"version": "2.177.0"
|
|
917
|
+
}
|
|
918
|
+
},
|
|
893
919
|
"CloudFrontDistribution": {
|
|
894
920
|
"id": "CloudFrontDistribution",
|
|
895
921
|
"path": "cftoais3-custom-originPath/test-cloudfront-oai-s3/CloudFrontDistribution",
|
|
@@ -897,34 +923,6 @@
|
|
|
897
923
|
"Origin1": {
|
|
898
924
|
"id": "Origin1",
|
|
899
925
|
"path": "cftoais3-custom-originPath/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1",
|
|
900
|
-
"children": {
|
|
901
|
-
"S3Origin": {
|
|
902
|
-
"id": "S3Origin",
|
|
903
|
-
"path": "cftoais3-custom-originPath/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1/S3Origin",
|
|
904
|
-
"children": {
|
|
905
|
-
"Resource": {
|
|
906
|
-
"id": "Resource",
|
|
907
|
-
"path": "cftoais3-custom-originPath/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1/S3Origin/Resource",
|
|
908
|
-
"attributes": {
|
|
909
|
-
"aws:cdk:cloudformation:type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
910
|
-
"aws:cdk:cloudformation:props": {
|
|
911
|
-
"cloudFrontOriginAccessIdentityConfig": {
|
|
912
|
-
"comment": "Identity for cftoais3customoriginPathtestcloudfrontoais3CloudFrontDistributionOrigin11DBC1949"
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
},
|
|
916
|
-
"constructInfo": {
|
|
917
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
|
|
918
|
-
"version": "2.177.0"
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
},
|
|
922
|
-
"constructInfo": {
|
|
923
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
|
|
924
|
-
"version": "2.177.0"
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
},
|
|
928
926
|
"constructInfo": {
|
|
929
927
|
"fqn": "constructs.Construct",
|
|
930
928
|
"version": "10.4.2"
|
|
@@ -955,7 +953,7 @@
|
|
|
955
953
|
[
|
|
956
954
|
"origin-access-identity/cloudfront/",
|
|
957
955
|
{
|
|
958
|
-
"Ref": "
|
|
956
|
+
"Ref": "testcloudfrontoais3constructsGeneratedOaiA468F478"
|
|
959
957
|
}
|
|
960
958
|
]
|
|
961
959
|
]
|
|
@@ -1009,7 +1007,7 @@
|
|
|
1009
1007
|
},
|
|
1010
1008
|
"constructInfo": {
|
|
1011
1009
|
"fqn": "@aws-solutions-constructs/aws-cloudfront-oai-s3.CloudFrontToOaiToS3",
|
|
1012
|
-
"version": "2.
|
|
1010
|
+
"version": "2.79.0"
|
|
1013
1011
|
}
|
|
1014
1012
|
},
|
|
1015
1013
|
"LatestNodeRuntimeMap": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"
|
|
17
|
+
"ff39a6648b6638582b85c731c927e0136f99c99b3978c62c876010a893228a93": {
|
|
18
18
|
"source": {
|
|
19
19
|
"path": "cftoais3-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": "ff39a6648b6638582b85c731c927e0136f99c99b3978c62c876010a893228a93.json",
|
|
26
26
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
"Principal": {
|
|
332
332
|
"CanonicalUser": {
|
|
333
333
|
"Fn::GetAtt": [
|
|
334
|
-
"
|
|
334
|
+
"testcloudfrontoais3constructsGeneratedOaiA468F478",
|
|
335
335
|
"S3CanonicalUserId"
|
|
336
336
|
]
|
|
337
337
|
}
|
|
@@ -785,11 +785,11 @@
|
|
|
785
785
|
"UpdateReplacePolicy": "Delete",
|
|
786
786
|
"DeletionPolicy": "Delete"
|
|
787
787
|
},
|
|
788
|
-
"
|
|
788
|
+
"testcloudfrontoais3constructsGeneratedOaiA468F478": {
|
|
789
789
|
"Type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
790
790
|
"Properties": {
|
|
791
791
|
"CloudFrontOriginAccessIdentityConfig": {
|
|
792
|
-
"Comment": "
|
|
792
|
+
"Comment": "Allows CloudFront to reach the bucket"
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
795
|
},
|
|
@@ -842,7 +842,7 @@
|
|
|
842
842
|
[
|
|
843
843
|
"origin-access-identity/cloudfront/",
|
|
844
844
|
{
|
|
845
|
-
"Ref": "
|
|
845
|
+
"Ref": "testcloudfrontoais3constructsGeneratedOaiA468F478"
|
|
846
846
|
}
|
|
847
847
|
]
|
|
848
848
|
]
|
|
@@ -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}/ff39a6648b6638582b85c731c927e0136f99c99b3978c62c876010a893228a93.json",
|
|
70
70
|
"requiresBootstrapStackVersion": 6,
|
|
71
71
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
72
|
"additionalDependencies": [
|
|
@@ -160,10 +160,10 @@
|
|
|
160
160
|
"data": "testcloudfrontoais3CloudfrontLoggingBucketAutoDeleteObjectsCustomResourceE88BD625"
|
|
161
161
|
}
|
|
162
162
|
],
|
|
163
|
-
"/cftoais3-customLoggingBuckets/test-cloudfront-oai-s3/
|
|
163
|
+
"/cftoais3-customLoggingBuckets/test-cloudfront-oai-s3/constructsGeneratedOai/Resource": [
|
|
164
164
|
{
|
|
165
165
|
"type": "aws:cdk:logicalId",
|
|
166
|
-
"data": "
|
|
166
|
+
"data": "testcloudfrontoais3constructsGeneratedOaiA468F478"
|
|
167
167
|
}
|
|
168
168
|
],
|
|
169
169
|
"/cftoais3-customLoggingBuckets/test-cloudfront-oai-s3/CloudFrontDistribution/Resource": [
|
|
@@ -207,6 +207,15 @@
|
|
|
207
207
|
"type": "aws:cdk:logicalId",
|
|
208
208
|
"data": "CheckBootstrapVersion"
|
|
209
209
|
}
|
|
210
|
+
],
|
|
211
|
+
"testcloudfrontoais3CloudFrontDistributionOrigin1S3OriginF57A3CB1": [
|
|
212
|
+
{
|
|
213
|
+
"type": "aws:cdk:logicalId",
|
|
214
|
+
"data": "testcloudfrontoais3CloudFrontDistributionOrigin1S3OriginF57A3CB1",
|
|
215
|
+
"trace": [
|
|
216
|
+
"!!DESTRUCTIVE_CHANGES: WILL_DESTROY"
|
|
217
|
+
]
|
|
218
|
+
}
|
|
210
219
|
]
|
|
211
220
|
},
|
|
212
221
|
"displayName": "cftoais3-customLoggingBuckets"
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
"Principal": {
|
|
384
384
|
"CanonicalUser": {
|
|
385
385
|
"Fn::GetAtt": [
|
|
386
|
-
"
|
|
386
|
+
"testcloudfrontoais3constructsGeneratedOaiA468F478",
|
|
387
387
|
"S3CanonicalUserId"
|
|
388
388
|
]
|
|
389
389
|
}
|
|
@@ -916,6 +916,32 @@
|
|
|
916
916
|
"version": "2.177.0"
|
|
917
917
|
}
|
|
918
918
|
},
|
|
919
|
+
"constructsGeneratedOai": {
|
|
920
|
+
"id": "constructsGeneratedOai",
|
|
921
|
+
"path": "cftoais3-customLoggingBuckets/test-cloudfront-oai-s3/constructsGeneratedOai",
|
|
922
|
+
"children": {
|
|
923
|
+
"Resource": {
|
|
924
|
+
"id": "Resource",
|
|
925
|
+
"path": "cftoais3-customLoggingBuckets/test-cloudfront-oai-s3/constructsGeneratedOai/Resource",
|
|
926
|
+
"attributes": {
|
|
927
|
+
"aws:cdk:cloudformation:type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
928
|
+
"aws:cdk:cloudformation:props": {
|
|
929
|
+
"cloudFrontOriginAccessIdentityConfig": {
|
|
930
|
+
"comment": "Allows CloudFront to reach the bucket"
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
"constructInfo": {
|
|
935
|
+
"fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
|
|
936
|
+
"version": "2.177.0"
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
"constructInfo": {
|
|
941
|
+
"fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
|
|
942
|
+
"version": "2.177.0"
|
|
943
|
+
}
|
|
944
|
+
},
|
|
919
945
|
"CloudFrontDistribution": {
|
|
920
946
|
"id": "CloudFrontDistribution",
|
|
921
947
|
"path": "cftoais3-customLoggingBuckets/test-cloudfront-oai-s3/CloudFrontDistribution",
|
|
@@ -923,34 +949,6 @@
|
|
|
923
949
|
"Origin1": {
|
|
924
950
|
"id": "Origin1",
|
|
925
951
|
"path": "cftoais3-customLoggingBuckets/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1",
|
|
926
|
-
"children": {
|
|
927
|
-
"S3Origin": {
|
|
928
|
-
"id": "S3Origin",
|
|
929
|
-
"path": "cftoais3-customLoggingBuckets/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1/S3Origin",
|
|
930
|
-
"children": {
|
|
931
|
-
"Resource": {
|
|
932
|
-
"id": "Resource",
|
|
933
|
-
"path": "cftoais3-customLoggingBuckets/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1/S3Origin/Resource",
|
|
934
|
-
"attributes": {
|
|
935
|
-
"aws:cdk:cloudformation:type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
936
|
-
"aws:cdk:cloudformation:props": {
|
|
937
|
-
"cloudFrontOriginAccessIdentityConfig": {
|
|
938
|
-
"comment": "Identity for cftoais3customLoggingBucketstestcloudfrontoais3CloudFrontDistributionOrigin108880941"
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
},
|
|
942
|
-
"constructInfo": {
|
|
943
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
|
|
944
|
-
"version": "2.177.0"
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
},
|
|
948
|
-
"constructInfo": {
|
|
949
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
|
|
950
|
-
"version": "2.177.0"
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
},
|
|
954
952
|
"constructInfo": {
|
|
955
953
|
"fqn": "constructs.Construct",
|
|
956
954
|
"version": "10.4.2"
|
|
@@ -980,7 +978,7 @@
|
|
|
980
978
|
[
|
|
981
979
|
"origin-access-identity/cloudfront/",
|
|
982
980
|
{
|
|
983
|
-
"Ref": "
|
|
981
|
+
"Ref": "testcloudfrontoais3constructsGeneratedOaiA468F478"
|
|
984
982
|
}
|
|
985
983
|
]
|
|
986
984
|
]
|
|
@@ -1034,7 +1032,7 @@
|
|
|
1034
1032
|
},
|
|
1035
1033
|
"constructInfo": {
|
|
1036
1034
|
"fqn": "@aws-solutions-constructs/aws-cloudfront-oai-s3.CloudFrontToOaiToS3",
|
|
1037
|
-
"version": "2.
|
|
1035
|
+
"version": "2.79.0"
|
|
1038
1036
|
}
|
|
1039
1037
|
},
|
|
1040
1038
|
"LatestNodeRuntimeMap": {
|
package/test/integ.cftoais3-existing-bucket.js.snapshot/cftoais3-existing-bucket.assets.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"
|
|
17
|
+
"b072c13f676427b1d3d3212f1aa8536f06b488711cc9a8308f4aa4e3b76ebb34": {
|
|
18
18
|
"source": {
|
|
19
19
|
"path": "cftoais3-existing-bucket.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": "b072c13f676427b1d3d3212f1aa8536f06b488711cc9a8308f4aa4e3b76ebb34.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.cftoais3-existing-bucket.js.snapshot/cftoais3-existing-bucket.template.json
CHANGED
|
@@ -378,13 +378,13 @@
|
|
|
378
378
|
"CanonicalUser": [
|
|
379
379
|
{
|
|
380
380
|
"Fn::GetAtt": [
|
|
381
|
-
"
|
|
381
|
+
"testcloudfrontoais3CloudFrontDistributionOrigin2S3Origin226F4E91",
|
|
382
382
|
"S3CanonicalUserId"
|
|
383
383
|
]
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
386
|
"Fn::GetAtt": [
|
|
387
|
-
"
|
|
387
|
+
"testcloudfrontoais3constructsGeneratedOaiA468F478",
|
|
388
388
|
"S3CanonicalUserId"
|
|
389
389
|
]
|
|
390
390
|
}
|
|
@@ -826,11 +826,11 @@
|
|
|
826
826
|
"UpdateReplacePolicy": "Delete",
|
|
827
827
|
"DeletionPolicy": "Delete"
|
|
828
828
|
},
|
|
829
|
-
"
|
|
829
|
+
"testcloudfrontoais3constructsGeneratedOaiA468F478": {
|
|
830
830
|
"Type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
831
831
|
"Properties": {
|
|
832
832
|
"CloudFrontOriginAccessIdentityConfig": {
|
|
833
|
-
"Comment": "
|
|
833
|
+
"Comment": "Allows CloudFront to reach the bucket"
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
836
|
},
|
|
@@ -894,7 +894,7 @@
|
|
|
894
894
|
[
|
|
895
895
|
"origin-access-identity/cloudfront/",
|
|
896
896
|
{
|
|
897
|
-
"Ref": "
|
|
897
|
+
"Ref": "testcloudfrontoais3constructsGeneratedOaiA468F478"
|
|
898
898
|
}
|
|
899
899
|
]
|
|
900
900
|
]
|
|
@@ -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}/b072c13f676427b1d3d3212f1aa8536f06b488711cc9a8308f4aa4e3b76ebb34.json",
|
|
70
70
|
"requiresBootstrapStackVersion": 6,
|
|
71
71
|
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
|
|
72
72
|
"additionalDependencies": [
|
|
@@ -184,10 +184,10 @@
|
|
|
184
184
|
"data": "testcloudfrontoais3CloudfrontLoggingBucketAutoDeleteObjectsCustomResourceE88BD625"
|
|
185
185
|
}
|
|
186
186
|
],
|
|
187
|
-
"/cftoais3-existing-bucket/test-cloudfront-oai-s3/
|
|
187
|
+
"/cftoais3-existing-bucket/test-cloudfront-oai-s3/constructsGeneratedOai/Resource": [
|
|
188
188
|
{
|
|
189
189
|
"type": "aws:cdk:logicalId",
|
|
190
|
-
"data": "
|
|
190
|
+
"data": "testcloudfrontoais3constructsGeneratedOaiA468F478"
|
|
191
191
|
}
|
|
192
192
|
],
|
|
193
193
|
"/cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Resource": [
|
|
@@ -219,6 +219,15 @@
|
|
|
219
219
|
"type": "aws:cdk:logicalId",
|
|
220
220
|
"data": "CheckBootstrapVersion"
|
|
221
221
|
}
|
|
222
|
+
],
|
|
223
|
+
"testcloudfrontoais3CloudFrontDistributionOrigin1S3OriginF57A3CB1": [
|
|
224
|
+
{
|
|
225
|
+
"type": "aws:cdk:logicalId",
|
|
226
|
+
"data": "testcloudfrontoais3CloudFrontDistributionOrigin1S3OriginF57A3CB1",
|
|
227
|
+
"trace": [
|
|
228
|
+
"!!DESTRUCTIVE_CHANGES: WILL_DESTROY"
|
|
229
|
+
]
|
|
230
|
+
}
|
|
222
231
|
]
|
|
223
232
|
},
|
|
224
233
|
"displayName": "cftoais3-existing-bucket"
|
|
@@ -384,13 +384,13 @@
|
|
|
384
384
|
"CanonicalUser": [
|
|
385
385
|
{
|
|
386
386
|
"Fn::GetAtt": [
|
|
387
|
-
"
|
|
387
|
+
"testcloudfrontoais3CloudFrontDistributionOrigin2S3Origin226F4E91",
|
|
388
388
|
"S3CanonicalUserId"
|
|
389
389
|
]
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
392
|
"Fn::GetAtt": [
|
|
393
|
-
"
|
|
393
|
+
"testcloudfrontoais3constructsGeneratedOaiA468F478",
|
|
394
394
|
"S3CanonicalUserId"
|
|
395
395
|
]
|
|
396
396
|
}
|
|
@@ -915,6 +915,32 @@
|
|
|
915
915
|
"version": "2.177.0"
|
|
916
916
|
}
|
|
917
917
|
},
|
|
918
|
+
"constructsGeneratedOai": {
|
|
919
|
+
"id": "constructsGeneratedOai",
|
|
920
|
+
"path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/constructsGeneratedOai",
|
|
921
|
+
"children": {
|
|
922
|
+
"Resource": {
|
|
923
|
+
"id": "Resource",
|
|
924
|
+
"path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/constructsGeneratedOai/Resource",
|
|
925
|
+
"attributes": {
|
|
926
|
+
"aws:cdk:cloudformation:type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
927
|
+
"aws:cdk:cloudformation:props": {
|
|
928
|
+
"cloudFrontOriginAccessIdentityConfig": {
|
|
929
|
+
"comment": "Allows CloudFront to reach the bucket"
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
"constructInfo": {
|
|
934
|
+
"fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
|
|
935
|
+
"version": "2.177.0"
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
"constructInfo": {
|
|
940
|
+
"fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
|
|
941
|
+
"version": "2.177.0"
|
|
942
|
+
}
|
|
943
|
+
},
|
|
918
944
|
"CloudFrontDistribution": {
|
|
919
945
|
"id": "CloudFrontDistribution",
|
|
920
946
|
"path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution",
|
|
@@ -922,34 +948,6 @@
|
|
|
922
948
|
"Origin1": {
|
|
923
949
|
"id": "Origin1",
|
|
924
950
|
"path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1",
|
|
925
|
-
"children": {
|
|
926
|
-
"S3Origin": {
|
|
927
|
-
"id": "S3Origin",
|
|
928
|
-
"path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1/S3Origin",
|
|
929
|
-
"children": {
|
|
930
|
-
"Resource": {
|
|
931
|
-
"id": "Resource",
|
|
932
|
-
"path": "cftoais3-existing-bucket/test-cloudfront-oai-s3/CloudFrontDistribution/Origin1/S3Origin/Resource",
|
|
933
|
-
"attributes": {
|
|
934
|
-
"aws:cdk:cloudformation:type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
935
|
-
"aws:cdk:cloudformation:props": {
|
|
936
|
-
"cloudFrontOriginAccessIdentityConfig": {
|
|
937
|
-
"comment": "Identity for cftoais3existingbuckettestcloudfrontoais3CloudFrontDistributionOrigin151240FB9"
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
},
|
|
941
|
-
"constructInfo": {
|
|
942
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
|
|
943
|
-
"version": "2.177.0"
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
},
|
|
947
|
-
"constructInfo": {
|
|
948
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
|
|
949
|
-
"version": "2.177.0"
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
},
|
|
953
951
|
"constructInfo": {
|
|
954
952
|
"fqn": "constructs.Construct",
|
|
955
953
|
"version": "10.4.2"
|
|
@@ -979,7 +977,7 @@
|
|
|
979
977
|
[
|
|
980
978
|
"origin-access-identity/cloudfront/",
|
|
981
979
|
{
|
|
982
|
-
"Ref": "
|
|
980
|
+
"Ref": "testcloudfrontoais3constructsGeneratedOaiA468F478"
|
|
983
981
|
}
|
|
984
982
|
]
|
|
985
983
|
]
|
|
@@ -1102,7 +1100,7 @@
|
|
|
1102
1100
|
},
|
|
1103
1101
|
"constructInfo": {
|
|
1104
1102
|
"fqn": "@aws-solutions-constructs/aws-cloudfront-oai-s3.CloudFrontToOaiToS3",
|
|
1105
|
-
"version": "2.
|
|
1103
|
+
"version": "2.79.0"
|
|
1106
1104
|
}
|
|
1107
1105
|
},
|
|
1108
1106
|
"myCachePolicy": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
"
|
|
17
|
+
"e1b1c2b1562c7d4a865d64c75fb6156c68081196ae9b73c9df2482dff8503949": {
|
|
18
18
|
"source": {
|
|
19
19
|
"path": "cftoais3-no-arguments.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": "e1b1c2b1562c7d4a865d64c75fb6156c68081196ae9b73c9df2482dff8503949.json",
|
|
26
26
|
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
"Principal": {
|
|
330
330
|
"CanonicalUser": {
|
|
331
331
|
"Fn::GetAtt": [
|
|
332
|
-
"
|
|
332
|
+
"testcloudfrontoais3constructsGeneratedOaiA468F478",
|
|
333
333
|
"S3CanonicalUserId"
|
|
334
334
|
]
|
|
335
335
|
}
|
|
@@ -770,11 +770,11 @@
|
|
|
770
770
|
"UpdateReplacePolicy": "Delete",
|
|
771
771
|
"DeletionPolicy": "Delete"
|
|
772
772
|
},
|
|
773
|
-
"
|
|
773
|
+
"testcloudfrontoais3constructsGeneratedOaiA468F478": {
|
|
774
774
|
"Type": "AWS::CloudFront::CloudFrontOriginAccessIdentity",
|
|
775
775
|
"Properties": {
|
|
776
776
|
"CloudFrontOriginAccessIdentityConfig": {
|
|
777
|
-
"Comment": "
|
|
777
|
+
"Comment": "Allows CloudFront to reach the bucket"
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
},
|
|
@@ -827,7 +827,7 @@
|
|
|
827
827
|
[
|
|
828
828
|
"origin-access-identity/cloudfront/",
|
|
829
829
|
{
|
|
830
|
-
"Ref": "
|
|
830
|
+
"Ref": "testcloudfrontoais3constructsGeneratedOaiA468F478"
|
|
831
831
|
}
|
|
832
832
|
]
|
|
833
833
|
]
|