Open mylamour opened 1 year ago
create a s3 bucket
{ "Version": "2008-10-17", "Id": "PolicyForCloudFrontPrivateContent", "Statement": [ { "Sid": "AllowCloudFrontServicePrincipal", "Effect": "Allow", "Principal": { "Service": "cloudfront.amazonaws.com" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::your bucketname/*", "Condition": { "StringEquals": { "AWS:SourceArn": "replace with your arn" } } } ] }
images
assets
create certicate in aws certificate manager
create cloudfront instance wth s3 backend and domain binding with origin access control
https
finally, you saw it worked.
create a s3 bucket
images
andassets
(this step was optional)create certicate in aws certificate manager
create cloudfront instance wth s3 backend and domain binding with origin access control
https
onlyfinally, you saw it worked.