STATIC WEBSITE WITH AWS S3 AND CLOUD FRONT CDN
STATIC WEBSITE WITH AWS S3 AND CDN As the title says let us see how to setup static site with S3 and CDN for high delivery performance. S3: First login to your AWS console and navigate to S3 console, Create a S3 bucket in the same name as your website ex: cdn.example.com In the permission tab edit public access and make the bucket as public as below, Update the bucket policy as below which makes the bucket public, { "Version": "2008-10-17", "Id": "PolicyForPublicWebsiteContent", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::cdn.example.com/*" } ] } Update the ACl as below, You